summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-03-24 20:29:02 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-03-24 20:29:02 +0000
commitdb8b1d5b6c728e99e762eac3b4982e6afa2241f6 (patch)
tree2da51d36978d7843427113eff1d6e7ce34436743 /llvm/lib
parentd82b23778579e545f766f622d02bc491d1a8fb35 (diff)
downloadbcm5719-llvm-db8b1d5b6c728e99e762eac3b4982e6afa2241f6.tar.gz
bcm5719-llvm-db8b1d5b6c728e99e762eac3b4982e6afa2241f6.zip
R600: Don't viewCFG() under DEBUG() except on failure.
Having these popping up every time you use -debug is really irritating. llvm-svn: 204664
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/AMDILCFGStructurizer.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp b/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp
index 3f6a95d2f77..21ca560dba0 100644
--- a/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud