Skip to content

Commit eab4873

Browse files
committed
Fix the warning caused by unused parameter
1 parent 2466df5 commit eab4873

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/include/llvm/Analysis/IVDescriptors.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ class RecurrenceDescriptor {
166166
/// other is a PHI value.
167167
// TODO: FindLast does not need be restricted to increasing loop induction
168168
// variables.
169-
static InstDesc isFindLastIVPattern(Loop *Loop, PHINode *OrigPhi,
170-
Instruction *I, ScalarEvolution *SE);
169+
static InstDesc isFindLastIVPattern(PHINode *OrigPhi, Instruction *I,
170+
ScalarEvolution *SE);
171171

172172
/// Returns a struct describing if the instruction is a
173173
/// Select(FCmp(X, Y), (Z = X op PHINode), PHINode) instruction pattern.

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,8 @@ RecurrenceDescriptor::isAnyOfPattern(Loop *Loop, PHINode *OrigPhi,
690690
// value of the data type or a non-constant value by using mask and multiple
691691
// reduction operations.
692692
RecurrenceDescriptor::InstDesc
693-
RecurrenceDescriptor::isFindLastIVPattern(Loop *Loop, PHINode *OrigPhi,
694-
Instruction *I, ScalarEvolution *SE) {
693+
RecurrenceDescriptor::isFindLastIVPattern(PHINode *OrigPhi, Instruction *I,
694+
ScalarEvolution *SE) {
695695
// Only match select with single use cmp condition.
696696
// TODO: Only handle single use for now.
697697
CmpInst::Predicate Pred;
@@ -888,7 +888,7 @@ RecurrenceDescriptor::InstDesc RecurrenceDescriptor::isRecurrenceInstr(
888888
Kind == RecurKind::Add || Kind == RecurKind::Mul)
889889
return isConditionalRdxPattern(Kind, I);
890890
if (isFindLastIVRecurrenceKind(Kind))
891-
return isFindLastIVPattern(L, OrigPhi, I, SE);
891+
return isFindLastIVPattern(OrigPhi, I, SE);
892892
[[fallthrough]];
893893
case Instruction::FCmp:
894894
case Instruction::ICmp:

0 commit comments

Comments
 (0)