[llvm] r311176 - [Dominators] Don't print the whole tree when running with -debug
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 18 10:06:37 PDT 2017
Author: kuhar
Date: Fri Aug 18 10:06:37 2017
New Revision: 311176
URL: http://llvm.org/viewvc/llvm-project?rev=311176&view=rev
Log:
[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.
Modified:
llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h
Modified: llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h?rev=311176&r1=311175&r2=311176&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h (original)
+++ llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h Fri Aug 18 10:06:37 2017
@@ -852,8 +852,6 @@ struct SemiNCAInfo {
DEBUG(dbgs() << "Inserted " << BlockNamePrinter(From)
<< " -> (prev unreachable) " << BlockNamePrinter(To) << "\n");
- DEBUG(DT.print(dbgs()));
-
// Used the discovered edges and inset discovered connecting (incoming)
// edges.
for (const auto &Edge : DiscoveredEdgesToReachable) {
@@ -888,7 +886,6 @@ struct SemiNCAInfo {
SNCA.attachNewSubtree(DT, Incoming);
DEBUG(dbgs() << "After adding unreachable nodes\n");
- DEBUG(DT.print(dbgs()));
}
static void DeleteEdge(DomTreeT &DT, const BatchUpdatePtr BUI,
More information about the llvm-commits
mailing list