[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri May 28 14:35:02 PDT 2004
Changes in directory llvm/lib/Target/SparcV9:
SparcV9TargetMachine.cpp updated: 1.111 -> 1.112
---
Log message:
Make debugging output with -print-machineinstrs more useful: always print out
the transformed LLVM code which is the input to the instruction selector.
---
Diffs of the changes: (+5 -0)
Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.111 llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.112
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.111 Sun May 23 16:23:33 2004
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp Fri May 28 14:33:59 2004
@@ -149,6 +149,11 @@
PM.add(createLICMPass());
PM.add(createGCSEPass());
+ // If the user's trying to read the generated code, they'll need to see the
+ // transformed input.
+ if (PrintMachineCode)
+ PM.add(new PrintModulePass());
+
// Construct and initialize the MachineFunction object for this fn.
PM.add(createMachineCodeConstructionPass(*this));
More information about the llvm-commits
mailing list