Skip to content

Commit 756c09a

Browse files
committed
[Dominators] Don't print the whole tree when running with -debug
As the incremental API is now used in several transforms, printing the whole dominator tree creates a lot of noise when running with the `-debug` flag. This patch fixes that. llvm-svn: 311176
1 parent dbc1647 commit 756c09a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/include/llvm/Support/GenericDomTreeConstruction.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,6 @@ struct SemiNCAInfo {
852852
DEBUG(dbgs() << "Inserted " << BlockNamePrinter(From)
853853
<< " -> (prev unreachable) " << BlockNamePrinter(To) << "\n");
854854

855-
DEBUG(DT.print(dbgs()));
856-
857855
// Used the discovered edges and inset discovered connecting (incoming)
858856
// edges.
859857
for (const auto &Edge : DiscoveredEdgesToReachable) {
@@ -888,7 +886,6 @@ struct SemiNCAInfo {
888886
SNCA.attachNewSubtree(DT, Incoming);
889887

890888
DEBUG(dbgs() << "After adding unreachable nodes\n");
891-
DEBUG(DT.print(dbgs()));
892889
}
893890

894891
static void DeleteEdge(DomTreeT &DT, const BatchUpdatePtr BUI,

0 commit comments

Comments
 (0)