From a8f3cf28e07becd256c1e8b25cf2a745077c135d Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Fri, 18 Aug 2017 17:06:37 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311176 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/GenericDomTreeConstruction.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/llvm/Support/GenericDomTreeConstruction.h b/include/llvm/Support/GenericDomTreeConstruction.h index 5883ce9e1e5..57d1c21f244 100644 --- a/include/llvm/Support/GenericDomTreeConstruction.h +++ b/include/llvm/Support/GenericDomTreeConstruction.h @@ -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,