InstCombine: If the divisor of an fdiv has an exact inverse, turn it into an fmul.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 30 Mar 2011 15:42:35 +0000 (15:42 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 30 Mar 2011 15:42:35 +0000 (15:42 +0000)
commit546739656ec9469499d3866d87dca6fdbcf2eee0
tree03f9fc1d482080d36e9897fe7f33e013721d03ec
parent2746000f4fa54e6ad00cf96910ea5772803624ed
InstCombine: If the divisor of an fdiv has an exact inverse, turn it into an fmul.

Fixes PR9587.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128546 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/fdiv.ll [new file with mode: 0644]