HomePhabricator

[InstCombine] canonicalize MUL with NEG operand

Description

[InstCombine] canonicalize MUL with NEG operand

-X * Y --> -(X * Y)
X * -Y --> -(X * Y)

Differential Revision: https://reviews.llvm.org/D55961

Details