Skip to content

Commit 2924bf9

Browse files
committed
Refine debug dump
1 parent 11900cd commit 2924bf9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,11 @@ bool RecurrenceDescriptor::isReductionPHI(PHINode *Phi, Loop *TheLoop,
986986
}
987987
if (AddReductionVar(Phi, RecurKind::IFindLastIV, TheLoop, FMF, RedDes, DB, AC,
988988
DT, SE)) {
989-
LLVM_DEBUG(dbgs() << "Found a FindLastIV reduction PHI." << *Phi << "\n");
989+
LLVM_DEBUG(dbgs() << "Found a "
990+
<< (RedDes.getRecurrenceKind() == RecurKind::FFindLastIV
991+
? "F"
992+
: "I")
993+
<< "FindLastIV reduction PHI." << *Phi << "\n");
990994
return true;
991995
}
992996
if (AddReductionVar(Phi, RecurKind::FMul, TheLoop, FMF, RedDes, DB, AC, DT,

0 commit comments

Comments
 (0)