[LFTR] Simplify another case under assumption exit counts are integers [nfc]
This invariant was introduced in 8f3d16905d
.
This commit is contained in:
parent
f2c385934b
commit
a124b4c7f9
|
@ -843,10 +843,6 @@ static PHINode *FindLoopCounter(Loop *L, BasicBlock *ExitingBB,
|
|||
if (!isLoopCounter(Phi, L, SE))
|
||||
continue;
|
||||
|
||||
// Avoid comparing an integer IV against a pointer Limit.
|
||||
if (BECount->getType()->isPointerTy() && !Phi->getType()->isPointerTy())
|
||||
continue;
|
||||
|
||||
const auto *AR = cast<SCEVAddRecExpr>(SE->getSCEV(Phi));
|
||||
|
||||
// AR may be a pointer type, while BECount is an integer type.
|
||||
|
|
Loading…
Reference in New Issue
Block a user