[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Mar 12 15:20:11 PST 2004


Changes in directory llvm/lib/Target/SparcV9:

SparcV9TargetMachine.cpp updated: 1.105 -> 1.106

---
Log message:

Make -print-machineinstrs show us the code both before and after reg. alloc.


---
Diffs of the changes:  (+4 -1)

Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.105 llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.106
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.105	Thu Mar  4 13:16:23 2004
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp	Fri Mar 12 15:19:08 2004
@@ -161,10 +161,13 @@
   if (!DisableSched)
     PM.add(createInstructionSchedulingWithSSAPass(*this));
 
+  if (PrintMachineCode)
+    PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before reg alloc:\n"));
+
   PM.add(getRegisterAllocator(*this));
 
   if (PrintMachineCode)
-    PM.add(createMachineFunctionPrinterPass(&std::cerr));
+    PM.add(createMachineFunctionPrinterPass(&std::cerr, "After reg alloc:\n"));
 
   PM.add(createPrologEpilogInsertionPass());
 





More information about the llvm-commits mailing list