summaryrefslogtreecommitdiff
path: root/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
commit6b370e615ca5b3ef17ed4fe4fa891fab1e2bdd9a (patch)
treec8cf9df9e818cd256d670ce14bd4a1e0ddf2f8a5 /lib/Support/APFloat.cpp
parent214fd3d2449738bbe0215dce24406dc29d9e49f7 (diff)
downloadllvm-6b370e615ca5b3ef17ed4fe4fa891fab1e2bdd9a.tar.gz
llvm-6b370e615ca5b3ef17ed4fe4fa891fab1e2bdd9a.tar.bz2
llvm-6b370e615ca5b3ef17ed4fe4fa891fab1e2bdd9a.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APFloat.cpp')
-rw-r--r--lib/Support/APFloat.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index 43c68f4d1d..7e8b4a3d0d 100644
--- a/lib/Support/APFloat.cpp
+++ b/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;