From e130844e410bbddabdc5ecaad8410af0d5d64214 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 24 Mar 2014 20:29:02 +0000 Subject: [PATCH] R600: Don't viewCFG() under DEBUG() except on failure. Having these popping up every time you use -debug is really irritating. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204664 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/AMDILCFGStructurizer.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/Target/R600/AMDILCFGStructurizer.cpp b/lib/Target/R600/AMDILCFGStructurizer.cpp index 3f6a95d2f77..21ca560dba0 100644 --- a/lib/Target/R600/AMDILCFGStructurizer.cpp +++ b/lib/Target/R600/AMDILCFGStructurizer.cpp @@ -790,7 +790,7 @@ bool AMDGPUCFGStructurizer::prepare() { bool AMDGPUCFGStructurizer::run() { //Assume reducible CFG... - DEBUG(dbgs() << "AMDGPUCFGStructurizer::run\n";FuncRep->viewCFG();); + DEBUG(dbgs() << "AMDGPUCFGStructurizer::run\n"); #ifdef STRESSTEST //Use the worse block ordering to test the algorithm. @@ -862,8 +862,7 @@ bool AMDGPUCFGStructurizer::run() { ContNextScc = false; DEBUG( dbgs() << "repeat processing SCC" << getSCCNum(MBB) - << "sccNumIter = " << SccNumIter << "\n"; - FuncRep->viewCFG(); + << "sccNumIter = " << SccNumIter << '\n'; ); } else { // Finish the current scc. @@ -919,12 +918,10 @@ bool AMDGPUCFGStructurizer::run() { BlockInfoMap.clear(); LLInfoMap.clear(); - DEBUG( - FuncRep->viewCFG(); - ); - - if (!Finish) - llvm_unreachable("IRREDUCIBL_CF"); + if (!Finish) { + DEBUG(FuncRep->viewCFG()); + llvm_unreachable("IRREDUCIBLE_CFG"); + } return true; }