summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-03 06:30:03 +0000
committerChris Lattner <sabre@nondot.org>2010-04-03 06:30:03 +0000
commit40ea690f39bf11e43e95c3950fa26474459b09a8 (patch)
tree3a75e286aa8eeccc3907ae561743b1ea66c2ed6f /llvm/lib/Transforms
parent2508bcf17632732fe50c2bccc47cded891bcdff9 (diff)
downloadbcm5719-llvm-40ea690f39bf11e43e95c3950fa26474459b09a8.tar.gz
bcm5719-llvm-40ea690f39bf11e43e95c3950fa26474459b09a8.zip
fix PR6761, a miscompilation due to the fp->int IV conversion
stuff. More bugs remain though. llvm-svn: 100282
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index da99890806d..70be6718084 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -709,9 +709,9 @@ void IndVarSimplify::HandleFloatingPointIV(Loop *L, PHINode *PN) {
case CmpInst::FCMP_OGE:
case CmpInst::FCMP_UGE: NewPred = CmpInst::ICMP_SGE; break;
case CmpInst::FCMP_OLT:
- case CmpInst::FCMP_ULT: NewPred = CmpInst::ICMP_ULT; break;
+ case CmpInst::FCMP_ULT: NewPred = CmpInst::ICMP_SLT; break;
case CmpInst::FCMP_OLE:
- case CmpInst::FCMP_ULE: NewPred = CmpInst::ICMP_ULE; break;
+ case CmpInst::FCMP_ULE: NewPred = CmpInst::ICMP_SLE; break;
}
const IntegerType *Int32Ty = Type::getInt32Ty(PN->getContext());
OpenPOWER on IntegriCloud