mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
fcd547ce03
commit
e130844e41
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user