Skip to content

Commit 4c89d87

Browse files
committed
[IVDesc] Update comment
1 parent e91fa66 commit 4c89d87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,9 +776,8 @@ RecurrenceDescriptor::isFindIVPattern(RecurKind Kind, Loop *TheLoop,
776776
};
777777

778778
// We are looking for selects of the form:
779-
// select(cmp(), phi, increasing_loop_induction) or
780-
// select(cmp(), increasing_loop_induction, phi)
781-
// TODO: Support for monotonically decreasing induction variable
779+
// select(cmp(), phi, loop_induction) or
780+
// select(cmp(), loop_induction, phi)
782781
if (auto RK = GetRecurKind(NonRdxPhi))
783782
return InstDesc(I, *RK);
784783

0 commit comments

Comments
 (0)