Skip to content

Commit 7e24ff0

Browse files
artagnonyuxuanchen1997
authored andcommitted
LAA: mark LoopInfo pointer const (NFC) (#100373)
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250644
1 parent 1bda83d commit 7e24ff0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

llvm/include/llvm/Analysis/ValueTracking.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ const Value *getUnderlyingObjectAggressive(const Value *V);
770770
/// it shouldn't look through the phi above.
771771
void getUnderlyingObjects(const Value *V,
772772
SmallVectorImpl<const Value *> &Objects,
773-
LoopInfo *LI = nullptr, unsigned MaxLookup = 6);
773+
const LoopInfo *LI = nullptr, unsigned MaxLookup = 6);
774774

775775
/// This is a wrapper around getUnderlyingObjects and adds support for basic
776776
/// ptrtoint+arithmetic+inttoptr sequences.

llvm/lib/Analysis/LoopAccessAnalysis.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,8 @@ class AccessAnalysis {
786786
//intrinsic property (such as TBAA metadata).
787787
AliasSetTracker AST;
788788

789-
LoopInfo *LI;
789+
/// The LoopInfo of the loop being checked.
790+
const LoopInfo *LI;
790791

791792
/// Sets of potentially dependent accesses - members of one set share an
792793
/// underlying pointer. The set "CheckDeps" identfies which sets really need a

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6580,7 +6580,7 @@ const Value *llvm::getUnderlyingObject(const Value *V, unsigned MaxLookup) {
65806580

65816581
void llvm::getUnderlyingObjects(const Value *V,
65826582
SmallVectorImpl<const Value *> &Objects,
6583-
LoopInfo *LI, unsigned MaxLookup) {
6583+
const LoopInfo *LI, unsigned MaxLookup) {
65846584
SmallPtrSet<const Value *, 4> Visited;
65856585
SmallVector<const Value *, 4> Worklist;
65866586
Worklist.push_back(V);

0 commit comments

Comments
 (0)