OSDN Git Service

[InstCombine] simplify code for X * -1.0 --> -X; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 28 Feb 2018 22:30:04 +0000 (22:30 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 28 Feb 2018 22:30:04 +0000 (22:30 +0000)
commit3190427825181d1663bb49f7c4074901a0a22987
tree5b01d53c73870430ccb3e48d2a81e94293ec3b18
parentad4af60b67351873c1f52980481bc9a26b55c9f1
[InstCombine] simplify code for X * -1.0 --> -X; NFC

I've added random FMF to one of the tests to show those are propagated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326377 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/fmul.ll