Skip to content

Commit 585dfbc

Browse files
committed
Fix the warning caused by unused parameter
1 parent 43c48c5 commit 585dfbc

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
@@ -692,8 +692,8 @@ RecurrenceDescriptor::isAnyOfPattern(Loop *Loop, PHINode *OrigPhi,
692692
// value of the data type or a non-constant value by using mask and multiple
693693
// reduction operations.
694694
RecurrenceDescriptor::InstDesc
695-
RecurrenceDescriptor::isFindLastIVPattern(Loop *Loop, PHINode *OrigPhi,
696-
Instruction *I, ScalarEvolution *SE) {
695+
RecurrenceDescriptor::isFindLastIVPattern(PHINode *OrigPhi, Instruction *I,
696+
ScalarEvolution *SE) {
697697
// Only match select with single use cmp condition.
698698
// TODO: Only handle single use for now.
699699
CmpInst::Predicate Pred;
@@ -890,7 +890,7 @@ RecurrenceDescriptor::InstDesc RecurrenceDescriptor::isRecurrenceInstr(
890890
Kind == RecurKind::Add || Kind == RecurKind::Mul)
891891
return isConditionalRdxPattern(Kind, I);
892892
if (isFindLastIVRecurrenceKind(Kind))
893-
return isFindLastIVPattern(L, OrigPhi, I, SE);
893+
return isFindLastIVPattern(OrigPhi, I, SE);
894894
[[fallthrough]];
895895
case Instruction::FCmp:
896896
case Instruction::ICmp:

0 commit comments

Comments
 (0)