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 | 43b85273ee11536c81b14dca0114cd8b9407db8e (patch) | |
tree | 49189124fe5025a7b5d1097ef88b05940e0e93f0 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 203bceb11184c57978541ef613996ef7667c44c1 (diff) |
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/Scalar/IndVarSimplify.cpp')
-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 da99890806..70be671808 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()); |