mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
simplify some code and resolve a fixme.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100272 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -745,10 +745,8 @@ void IndVarSimplify::HandleFloatingPointIV(Loop *L, PHINode *PH) {
|
|||||||
// original PHI.
|
// original PHI.
|
||||||
ConstantInt *NewEV = ConstantInt::get(Int32Ty, ExitValue);
|
ConstantInt *NewEV = ConstantInt::get(Int32Ty, ExitValue);
|
||||||
|
|
||||||
// FIXME: This is probably wrong.
|
ICmpInst *NewCompare = new ICmpInst(TheBr, NewPred, NewAdd, NewEV,
|
||||||
Value *LHS = NewPHI->getIncomingValue(1);
|
EC->getName());
|
||||||
Value *RHS = NewEV;
|
|
||||||
ICmpInst *NewCompare = new ICmpInst(TheBr, NewPred, LHS, RHS, EC->getName());
|
|
||||||
|
|
||||||
// In the following deletions, PH may become dead and may be deleted.
|
// In the following deletions, PH may become dead and may be deleted.
|
||||||
// Use a WeakVH to observe whether this happens.
|
// Use a WeakVH to observe whether this happens.
|
||||||
|
Reference in New Issue
Block a user