Benjamin Kramer 2746000f4f Add APFloat::getExactInverse.
The idea is, that if an ieee 754 float is divided by a power of two, we can
turn the division into a cheaper multiplication. This function sees if we can
get an exact multiplicative inverse for a divisor and returns it if possible.

This is the hard part of PR9587.

I tested many inputs against llvm-gcc's frotend implementation of this
optimization and didn't find any difference. However, floating point is the
land of weird edge cases, so any review would be appreciated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128545 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-30 15:42:27 +00:00
..
2011-03-30 15:42:27 +00:00
2011-03-24 16:18:19 +00:00
2011-02-03 23:17:40 +00:00
2011-03-05 14:17:37 +00:00
2011-03-04 01:20:33 +00:00
2011-03-21 16:38:22 +00:00
2011-03-08 16:59:03 +00:00