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 | e669c930a61dd56891df2f9822966ecb173c8072 (patch) | |
tree | 53ff745488557829caca914c70c8635200cd6e69 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 159c735f7b8c4ec441780abcfccbe66f14346543 (diff) | |
download | llvm-e669c930a61dd56891df2f9822966ecb173c8072.tar.gz llvm-e669c930a61dd56891df2f9822966ecb173c8072.tar.bz2 llvm-e669c930a61dd56891df2f9822966ecb173c8072.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 8a2f093629..dfdd99f027 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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, |