Skip to content

Commit 645ba1f

Browse files
committed
Add debug log.
1 parent fe7c50a commit 645ba1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3623,8 +3623,9 @@ static bool FoldTwoEntryPHINode(PHINode *PN, const TargetTransformInfo &TTI,
36233623
[](BasicBlock *IfBlock) { return IfBlock->hasAddressTaken(); }))
36243624
return Changed;
36253625

3626-
LLVM_DEBUG(dbgs() << "FOUND IF CONDITION! " << *IfCond
3627-
<< " T: " << IfTrue->getName()
3626+
LLVM_DEBUG(dbgs() << "FOUND IF CONDITION! " << *IfCond;
3627+
if (IsUnpredictable) dbgs() << " (unpredictable)";
3628+
dbgs() << " T: " << IfTrue->getName()
36283629
<< " F: " << IfFalse->getName() << "\n");
36293630

36303631
// If we can still promote the PHI nodes after this gauntlet of tests,

0 commit comments

Comments
 (0)