mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-05 11:17:53 +00:00
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
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user