Teach InstCombine that (fmul X, -1.0) can be simplified to (fneg X), which LLVM expre...
authorOwen Anderson <resistor@mac.com>
Thu, 16 Jan 2014 20:36:42 +0000 (20:36 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 16 Jan 2014 20:36:42 +0000 (20:36 +0000)
commita2a8bbb30f271843dd0678f563a62154919e09b4
tree8c5978b68565ac64471a374b82da3f20efeb412c
parenta560d155d91012e4f3fa9f1742d98ac7562c0bc0
Teach InstCombine that (fmul X, -1.0) can be simplified to (fneg X), which LLVM expresses as (fsub -0.0, X).

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