llvm.org GIT mirror llvm / e130844
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 Matt Arsenault 6 years ago
1 changed file(s) with 6 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
789789 bool AMDGPUCFGStructurizer::run() {
790790
791791 //Assume reducible CFG...
792 DEBUG(dbgs() << "AMDGPUCFGStructurizer::run\n";FuncRep->viewCFG(););
792 DEBUG(dbgs() << "AMDGPUCFGStructurizer::run\n");
793793
794794 #ifdef STRESSTEST
795795 //Use the worse block ordering to test the algorithm.
861861 ContNextScc = false;
862862 DEBUG(
863863 dbgs() << "repeat processing SCC" << getSCCNum(MBB)
864 << "sccNumIter = " << SccNumIter << "\n";
865 FuncRep->viewCFG();
864 << "sccNumIter = " << SccNumIter << '\n';
866865 );
867866 } else {
868867 // Finish the current scc.
918917 BlockInfoMap.clear();
919918 LLInfoMap.clear();
920919
921 DEBUG(
922 FuncRep->viewCFG();
923 );
924
925 if (!Finish)
926 llvm_unreachable("IRREDUCIBL_CF");
920 if (!Finish) {
921 DEBUG(FuncRep->viewCFG());
922 llvm_unreachable("IRREDUCIBLE_CFG");
923 }
927924
928925 return true;
929926 }