Add a verification pass after ExpandISelPseudos.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 20 Aug 2012 20:52:08 +0000 (20:52 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 20 Aug 2012 20:52:08 +0000 (20:52 +0000)
This pass often has weird CFG hacks and hand-written MI building code
that can go wrong in many ways.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162224 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/Passes.cpp

index cfa3eecf02ef14a527074a4fd3ba9d8b9ebc6db7..56526f2732d8256fda602b7d199a6dbf9d6ef8aa 100644 (file)
@@ -456,7 +456,8 @@ void TargetPassConfig::addMachinePasses() {
   printAndVerify("After Instruction Selection");
 
   // Expand pseudo-instructions emitted by ISel.
-  addPass(&ExpandISelPseudosID);
+  if (addPass(&ExpandISelPseudosID))
+    printAndVerify("After ExpandISelPseudos");
 
   // Add passes that optimize machine instructions in SSA form.
   if (getOptLevel() != CodeGenOpt::None) {