Skip to content

Commit a7924ee

Browse files
committed
!fixup remove applyLoopGuards not needed in this version.
1 parent 7e1ed0d commit a7924ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Utils/LoopPeel.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,12 @@ static bool shouldPeelLastIteration(Loop &L, CmpPredicate Pred,
366366
return false;
367367

368368
const SCEV *BTC = SE.getBackedgeTakenCount(&L);
369-
const SCEV *ValAtLastIter =
370-
SE.applyLoopGuards(LeftAR->evaluateAtIteration(BTC, SE), &L);
369+
const SCEV *ValAtLastIter = LeftAR->evaluateAtIteration(BTC, SE);
371370
const SCEV *ValAtSecondToLastIter = LeftAR->evaluateAtIteration(
372371
SE.getMinusSCEV(BTC, SE.getOne(BTC->getType())), SE);
373372

374373
return SE.isKnownPredicate(ICmpInst::getInversePredicate(Pred), ValAtLastIter,
375-
SE.applyLoopGuards(RightSCEV, &L)) &&
374+
RightSCEV) &&
376375
SE.isKnownPredicate(Pred, ValAtSecondToLastIter, RightSCEV);
377376
}
378377

0 commit comments

Comments
 (0)