From a6d5d2a6a0ee80b00985e9232a89d6e537cceff8 Mon Sep 17 00:00:00 2001 From: David Greene Date: Thu, 6 Sep 2007 16:36:39 +0000 Subject: Add instruction dump output. This helps find bugs. llvm-svn: 41744 --- llvm/lib/CodeGen/VirtRegMap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 03a5cfde5bd..307a8e29612 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -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: -- cgit v1.2.3