summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APFloat.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-11-08 13:58:10 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-11-08 13:58:10 +0000
commit08be41adbf6a3671a9ae1fe2927481609121e18f (patch)
tree105a8552f3920619b0e1e8c262248f88e0300129 /llvm/lib/Support/APFloat.cpp
parent9b836fb019bb82970464f4e14b36a6e51dbdc7dd (diff)
downloadbcm5719-llvm-08be41adbf6a3671a9ae1fe2927481609121e18f.tar.gz
bcm5719-llvm-08be41adbf6a3671a9ae1fe2927481609121e18f.zip
Drop the limitation to IEEE floating point types from the fdiv of pow2 -> fmul transform.
This is safe for x87 long doubles and ppc double doubles too. llvm-svn: 167582
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r--llvm/lib/Support/APFloat.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp
index 43c68f4d1d1..7e8b4a3d0d2 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/lib/Support/APFloat.cpp
@@ -3553,11 +3553,6 @@ void APFloat::toString(SmallVectorImpl<char> &Str,
}
bool APFloat::getExactInverse(APFloat *inv) const {
- // We can only guarantee the existence of an exact inverse for IEEE floats.
- if (semantics != &IEEEhalf && semantics != &IEEEsingle &&
- semantics != &IEEEdouble && semantics != &IEEEquad)
- return false;
-
// Special floats and denormals have no exact inverse.
if (category != fcNormal)
return false;
OpenPOWER on IntegriCloud