diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2012-10-29 18:35:49 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2012-10-29 18:35:49 +0000 |
commit | 3abb34389d862f096c3581a7cd76d3888d74eaa0 (patch) | |
tree | 8fb2a8c2f23b46fe4c8921d8b73d1919374412ee /llvm/lib/Transforms | |
parent | ee3e0fb63257c79773a5cccd7ddb6abbfa5bf5cd (diff) | |
download | bcm5719-llvm-3abb34389d862f096c3581a7cd76d3888d74eaa0.tar.gz bcm5719-llvm-3abb34389d862f096c3581a7cd76d3888d74eaa0.zip |
In various places throughout the code generator, there were special
checks to avoid performing compile-time arithmetic on PPCDoubleDouble.
Now that APFloat supports arithmetic on PPCDoubleDouble, those checks
are no longer needed, and we can treat the type like any other.
llvm-svn: 166958
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 8a2f0936292..dfdd99f027e 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -220,8 +220,6 @@ static Instruction *getInsertPointForUses(Instruction *User, Value *Def, /// ConvertToSInt - Convert APF to an integer, if possible. static bool ConvertToSInt(const APFloat &APF, int64_t &IntVal) { bool isExact = false; - if (&APF.getSemantics() == &APFloat::PPCDoubleDouble) - return false; // See if we can convert this to an int64_t uint64_t UIntVal; if (APF.convertToInteger(&UIntVal, 64, true, APFloat::rmTowardZero, |