HomePhabricator

[InstCombine] canonicalize MUL with NEG operand

Authored by shchenz on Dec 31 2018, 5:09 PM.

Description

[InstCombine] canonicalize MUL with NEG operand

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

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

llvm-svn: 350185

Details