Skip to content

Commit 25857e8

Browse files
committed
Remove unused MaxLookup parameter
1 parent 291ffd2 commit 25857e8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/include/llvm/Analysis/ValueTracking.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,7 @@ inline Value *getUnderlyingObject(Value *V, unsigned MaxLookup = 6) {
738738

739739
/// Like getUnderlyingObject(), but will try harder to find a single underlying
740740
/// object. In particular, this function also looks through selects and phis.
741-
const Value *getUnderlyingObjectAggressive(const Value *V,
742-
unsigned MaxLookup = 6);
741+
const Value *getUnderlyingObjectAggressive(const Value *V);
743742

744743
/// This method is similar to getUnderlyingObject except that it can
745744
/// look through phi and select instructions and return multiple objects.

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6609,8 +6609,7 @@ void llvm::getUnderlyingObjects(const Value *V,
66096609
} while (!Worklist.empty());
66106610
}
66116611

6612-
const Value *llvm::getUnderlyingObjectAggressive(const Value *V,
6613-
unsigned MaxLookup) {
6612+
const Value *llvm::getUnderlyingObjectAggressive(const Value *V) {
66146613
const unsigned MaxVisited = 8;
66156614

66166615
SmallPtrSet<const Value *, 8> Visited;
@@ -6619,7 +6618,7 @@ const Value *llvm::getUnderlyingObjectAggressive(const Value *V,
66196618
const Value *Object = nullptr, *FirstObject = nullptr;
66206619
do {
66216620
const Value *P = Worklist.pop_back_val();
6622-
P = getUnderlyingObject(P, MaxLookup);
6621+
P = getUnderlyingObject(P);
66236622

66246623
if (!FirstObject)
66256624
FirstObject = P;

0 commit comments

Comments
 (0)