[llvm-commits] [llvm] r41744 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp

David Greene greened at obbligato.org
Thu Sep 6 09:36:39 PDT 2007


Author: greened
Date: Thu Sep  6 11:36:39 2007
New Revision: 41744

URL: http://llvm.org/viewvc/llvm-project?rev=41744&view=rev
Log:

Add instruction dump output.  This helps find bugs.





Modified:
    llvm/trunk/lib/CodeGen/VirtRegMap.cpp

Modified: llvm/trunk/lib/CodeGen/VirtRegMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegMap.cpp?rev=41744&r1=41743&r2=41744&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegMap.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegMap.cpp Thu Sep  6 11:36:39 2007
@@ -250,10 +250,16 @@
       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:





More information about the llvm-commits mailing list