Skip to content

Commit 4a88b44

Browse files
committed
Fix the warning caused by unused parameter
1 parent d2bfe2f commit 4a88b44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,8 @@ RecurrenceDescriptor::isAnyOfPattern(Loop *Loop, PHINode *OrigPhi,
688688
// value of the data type or a non-constant value by using mask and multiple
689689
// reduction operations.
690690
RecurrenceDescriptor::InstDesc
691-
RecurrenceDescriptor::isFindLastIVPattern(Loop *Loop, PHINode *OrigPhi,
692-
Instruction *I, ScalarEvolution *SE) {
691+
RecurrenceDescriptor::isFindLastIVPattern(PHINode *OrigPhi, Instruction *I,
692+
ScalarEvolution *SE) {
693693
// Only match select with single use cmp condition.
694694
// TODO: Only handle single use for now.
695695
CmpInst::Predicate Pred;
@@ -881,7 +881,7 @@ RecurrenceDescriptor::InstDesc RecurrenceDescriptor::isRecurrenceInstr(
881881
Kind == RecurKind::Add || Kind == RecurKind::Mul)
882882
return isConditionalRdxPattern(Kind, I);
883883
if (isFindLastIVRecurrenceKind(Kind))
884-
return isFindLastIVPattern(L, OrigPhi, I, SE);
884+
return isFindLastIVPattern(OrigPhi, I, SE);
885885
[[fallthrough]];
886886
case Instruction::FCmp:
887887
case Instruction::ICmp:

0 commit comments

Comments
 (0)