Skip to content

Commit 11900cd

Browse files
committed
Refine comments
1 parent 3e2e9f1 commit 11900cd

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
@@ -690,8 +690,7 @@ RecurrenceDescriptor::isAnyOfPattern(Loop *Loop, PHINode *OrigPhi,
690690
RecurrenceDescriptor::InstDesc
691691
RecurrenceDescriptor::isFindLastIVPattern(PHINode *OrigPhi, Instruction *I,
692692
ScalarEvolution &SE) {
693-
// Only match select with single use cmp condition.
694-
// TODO: Only handle single use for now.
693+
// TODO: Match selects with multi-use cmp conditions.
695694
CmpInst::Predicate Pred;
696695
if (!match(I, m_Select(m_OneUse(m_Cmp(Pred, m_Value(), m_Value())), m_Value(),
697696
m_Value())))
@@ -725,7 +724,8 @@ RecurrenceDescriptor::isFindLastIVPattern(PHINode *OrigPhi, Instruction *I,
725724
// Keep the minimum value of the recurrence type as the sentinel value.
726725
// The maximum acceptable range for the increasing induction variable,
727726
// called the valid range, will be defined as
728-
// [<sentinel value> + 1, SignedMin(<recurrence type>))
727+
// [<sentinel value> + 1, <sentinel value>)
728+
// where <sentinel value> is SignedMin(<recurrence type>)
729729
// TODO: This range restriction can be lifted by adding an additional
730730
// virtual OR reduction.
731731
const APInt Sentinel = APInt::getSignedMinValue(NumBits);

0 commit comments

Comments
 (0)