Skip to content

Commit 5127939

Browse files
committed
review comment
1 parent 5323693 commit 5127939

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14967,11 +14967,8 @@ bool SCEVWrapPredicate::implies(const SCEVPredicate *N,
1496714967
if (Start->getType()->isPointerTy() != OpStart->getType()->isPointerTy())
1496814968
return false;
1496914969

14970-
if (Start->getType()->isPointerTy()) {
14971-
if (Start->getType()->getPointerAddressSpace() !=
14972-
OpStart->getType()->getPointerAddressSpace())
14973-
return false;
14974-
}
14970+
if (Start->getType()->isPointerTy() && Start->getType() != OpStart->getType())
14971+
return false;
1497514972

1497614973
const SCEV *Step = AR->getStepRecurrence(SE);
1497714974
const SCEV *OpStep = Op->AR->getStepRecurrence(SE);

0 commit comments

Comments
 (0)