Add instruction dump output. This helps find bugs.
authorDavid Greene <greened@obbligato.org>
Thu, 6 Sep 2007 16:36:39 +0000 (16:36 +0000)
committerDavid Greene <greened@obbligato.org>
Thu, 6 Sep 2007 16:36:39 +0000 (16:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41744 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/VirtRegMap.cpp

index 03a5cfde5bd3bc20b03b16cf7616c7c733b86d8b..307a8e296120454c3059f1ae16e23ad47719ed94 100644 (file)
@@ -250,10 +250,16 @@ namespace {
       TII = MF.getTarget().getInstrInfo();
       DOUT << "\n**** Local spiller rewriting function '"
            << MF.getFunction()->getName() << "':\n";
+      DOUT << "**** Machine Instrs (NOTE! Does not include spills and reloads!) ****\n";
+      DEBUG(MF.dump());
 
       for (MachineFunction::iterator MBB = MF.begin(), E = MF.end();
            MBB != E; ++MBB)
         RewriteMBB(*MBB, VRM);
+
+      DOUT << "**** Post Machine Instrs ****\n";
+      DEBUG(MF.dump());
+
       return true;
     }
   private: