CodeGen: print and verify after TargetPassConfig::insertPass by default
[oota-llvm.git] / lib / Target / AMDGPU / AMDGPUTargetMachine.cpp
index 16fff50398ea5e6199fac01fe8a202a8a134fcc0..854b12ab45c09a845f4e436d7c24a97532d4d8d3 100644 (file)
@@ -309,7 +309,9 @@ void GCNPassConfig::addFastRegAlloc(FunctionPass *RegAllocPass) {
 void GCNPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) {
   // We want to run this after LiveVariables is computed to avoid computing them
   // twice.
-  insertPass(&LiveVariablesID, &SIFixSGPRLiveRangesID);
+  // FIXME: We shouldn't disable the verifier here. r249087 introduced a failure
+  // that needs to be fixed.
+  insertPass(&LiveVariablesID, &SIFixSGPRLiveRangesID, /*VerifyAfter=*/false);
   TargetPassConfig::addOptimizedRegAlloc(RegAllocPass);
 }