Skip to content

Commit ec9217d

Browse files
committed
Add TODO comment for the decreasing induction
1 parent 952b5df commit ec9217d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ RecurrenceDescriptor::isFindLastIVPattern(PHINode *OrigPhi, Instruction *I,
742742
// We are looking for selects of the form:
743743
// select(cmp(), phi, loop_induction) or
744744
// select(cmp(), loop_induction, phi)
745+
// TODO: Support for monotonically decreasing induction variable
745746
if (!IsIncreasingLoopInduction(NonRdxPhi))
746747
return InstDesc(false, I);
747748

0 commit comments

Comments
 (0)