1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[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
This commit is contained in:
Jakub Kuderski 2017-08-18 17:06:37 +00:00
parent 0823f275d4
commit 004e4fe2ff

View File

@ -852,8 +852,6 @@ struct SemiNCAInfo {
DEBUG(dbgs() << "Inserted " << BlockNamePrinter(From) DEBUG(dbgs() << "Inserted " << BlockNamePrinter(From)
<< " -> (prev unreachable) " << BlockNamePrinter(To) << "\n"); << " -> (prev unreachable) " << BlockNamePrinter(To) << "\n");
DEBUG(DT.print(dbgs()));
// Used the discovered edges and inset discovered connecting (incoming) // Used the discovered edges and inset discovered connecting (incoming)
// edges. // edges.
for (const auto &Edge : DiscoveredEdgesToReachable) { for (const auto &Edge : DiscoveredEdgesToReachable) {
@ -888,7 +886,6 @@ struct SemiNCAInfo {
SNCA.attachNewSubtree(DT, Incoming); SNCA.attachNewSubtree(DT, Incoming);
DEBUG(dbgs() << "After adding unreachable nodes\n"); DEBUG(dbgs() << "After adding unreachable nodes\n");
DEBUG(DT.print(dbgs()));
} }
static void DeleteEdge(DomTreeT &DT, const BatchUpdatePtr BUI, static void DeleteEdge(DomTreeT &DT, const BatchUpdatePtr BUI,