Skip to content

Commit 167b598

Browse files
committed
[ConstraintElim] Remove redundant debug output (NFC).
The removed code was printing `Processing facts ...` a second time.
1 parent ed6f499 commit 167b598

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

llvm/lib/Transforms/Scalar/ConstraintElimination.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,22 +1599,14 @@ static bool eliminateConstraints(Function &F, DominatorTree &DT, LoopInfo &LI,
15991599
LLVM_DEBUG(dbgs() << "fact to add to the system: "
16001600
<< CmpInst::getPredicateName(Pred) << " ";
16011601
A->printAsOperand(dbgs()); dbgs() << ", ";
1602-
B->printAsOperand(dbgs()); dbgs() << "\n");
1602+
B->printAsOperand(dbgs(), false); dbgs() << "\n");
16031603
if (Info.getCS(CmpInst::isSigned(Pred)).size() > MaxRows) {
16041604
LLVM_DEBUG(
16051605
dbgs()
16061606
<< "Skip adding constraint because system has too many rows.\n");
16071607
return;
16081608
}
16091609

1610-
LLVM_DEBUG({
1611-
dbgs() << "Processing fact to add to the system: " << Pred << " ";
1612-
A->printAsOperand(dbgs());
1613-
dbgs() << ", ";
1614-
B->printAsOperand(dbgs(), false);
1615-
dbgs() << "\n";
1616-
});
1617-
16181610
Info.addFact(Pred, A, B, CB.NumIn, CB.NumOut, DFSInStack);
16191611
if (ReproducerModule && DFSInStack.size() > ReproducerCondStack.size())
16201612
ReproducerCondStack.emplace_back(Pred, A, B);

0 commit comments

Comments
 (0)