diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-04-03 06:30:03 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-04-03 06:30:03 +0000 |
| commit | 7151ee657be5f9637e6f6c32a95a7e962f1c53c1 (patch) | |
| tree | 49189124fe5025a7b5d1097ef88b05940e0e93f0 /lib/Transforms | |
| parent | 988b9dbec0db26df81ed0423ff561cd9b41ae7f3 (diff) | |
| download | external_llvm-7151ee657be5f9637e6f6c32a95a7e962f1c53c1.zip external_llvm-7151ee657be5f9637e6f6c32a95a7e962f1c53c1.tar.gz external_llvm-7151ee657be5f9637e6f6c32a95a7e962f1c53c1.tar.bz2 | |
fix PR6761, a miscompilation due to the fp->int IV conversion
stuff. More bugs remain though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index da99890..70be671 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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()); |
