summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-29 18:35:49 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-29 18:35:49 +0000
commit3abb34389d862f096c3581a7cd76d3888d74eaa0 (patch)
tree8fb2a8c2f23b46fe4c8921d8b73d1919374412ee /llvm/lib/Transforms
parentee3e0fb63257c79773a5cccd7ddb6abbfa5bf5cd (diff)
downloadbcm5719-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.cpp2
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,
OpenPOWER on IntegriCloud