[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
Tanya Brethour
tbrethou at cs.uiuc.edu
Thu Jun 16 21:00:33 PDT 2005
Changes in directory llvm/lib/Target/SparcV9:
SparcV9TargetMachine.cpp updated: 1.137 -> 1.138
---
Log message:
Added SMS for superblocks as an option (experimental)
---
Diffs of the changes: (+10 -1)
SparcV9TargetMachine.cpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.137 llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.138
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.137 Fri May 13 14:45:45 2005
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp Thu Jun 16 23:00:22 2005
@@ -64,7 +64,10 @@
cl::desc("Emit LLVM-to-MachineCode mapping info to assembly"));
cl::opt<bool> EnableModSched("enable-modsched",
- cl::desc("Enable sparcv9 modulo scheduling pass instead of local scheduling"), cl::Hidden);
+ cl::desc("Enable modulo scheduling pass"), cl::Hidden);
+
+ cl::opt<bool> EnableSBModSched("enable-modschedSB",
+ cl::desc("Enable superblock modulo scheduling (experimental)"), cl::Hidden);
// Register the target.
RegisterTarget<SparcV9TargetMachine> X("sparcv9", " SPARC V9");
@@ -192,6 +195,9 @@
PM.add(createSparcV9BurgInstSelector(*this));
+ if(!DisableSched && PrintMachineCode)
+ PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before local scheduling:\n"));
+
if (!DisableSched)
PM.add(createInstructionSchedulingWithSSAPass(*this));
@@ -202,6 +208,9 @@
if(EnableModSched)
PM.add(createModuloSchedulingPass(*this));
+ if(EnableSBModSched)
+ PM.add(createModuloSchedulingSBPass(*this));
+
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before reg alloc:\n"));
More information about the llvm-commits
mailing list