mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
simplify some code and resolve a fixme.
llvm-svn: 100272
This commit is contained in:
parent
cdc272fa9d
commit
028bdcd418
@ -745,10 +745,8 @@ void IndVarSimplify::HandleFloatingPointIV(Loop *L, PHINode *PH) {
|
||||
// original PHI.
|
||||
ConstantInt *NewEV = ConstantInt::get(Int32Ty, ExitValue);
|
||||
|
||||
// FIXME: This is probably wrong.
|
||||
Value *LHS = NewPHI->getIncomingValue(1);
|
||||
Value *RHS = NewEV;
|
||||
ICmpInst *NewCompare = new ICmpInst(TheBr, NewPred, LHS, RHS, EC->getName());
|
||||
ICmpInst *NewCompare = new ICmpInst(TheBr, NewPred, NewAdd, NewEV,
|
||||
EC->getName());
|
||||
|
||||
// In the following deletions, PH may become dead and may be deleted.
|
||||
// Use a WeakVH to observe whether this happens.
|
||||
|
Loading…
Reference in New Issue
Block a user