Skip to content

Commit 7605406

Browse files
committed
LAA: add comment
1 parent 0a48a23 commit 7605406

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Analysis/LoopAccessAnalysis.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,6 +2895,7 @@ static const SCEV *getStrideFromPointer(Value *Ptr, ScalarEvolution *SE, Loop *L
28952895
return nullptr;
28962896

28972897
auto StepVal = StepConst->getAPInt().trySExtValue();
2898+
// Bail out on a non-unit pointer access size.
28982899
if (!StepVal || StepVal != 1)
28992900
return nullptr;
29002901

0 commit comments

Comments
 (0)