make -view-isel-dags print after the 'ShrinkDemandedOps' pass.
authorChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2010 19:27:55 +0000 (19:27 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2010 19:27:55 +0000 (19:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98509 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index d91d8bdeceba5da5882d1db4b80fb5fe34c52a64..2fa869f1b80f4db23dc5a1b816779745f6904622 100644 (file)
@@ -715,13 +715,13 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
   DEBUG(dbgs() << "Optimized legalized selection DAG:\n");
   DEBUG(CurDAG->dump());
 
-  if (ViewISelDAGs) CurDAG->viewGraph("isel input for " + BlockName);
-
   if (OptLevel != CodeGenOpt::None) {
     ShrinkDemandedOps();
     ComputeLiveOutVRegInfo();
   }
 
+  if (ViewISelDAGs) CurDAG->viewGraph("isel input for " + BlockName);
+
   // Third, instruction select all of the operations to machine code, adding the
   // code to the MachineBasicBlock.
   if (TimePassesIsEnabled) {