aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2005-06-17 04:00:22 +0000
committerTanya Lattner <tonic@nondot.org>2005-06-17 04:00:22 +0000
commit770e991bc4b8c0249325056aadf2af3b9da9ff5f (patch)
tree894b4a1514c9f57047b6ebc5f12d06a49886b7cc
parent771c5c18193f800b7e8a29c0c897831cc056cf08 (diff)
Added SMS for superblocks as an option (experimental)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22238 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 6842ddcfd2..155d4d59ef 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -64,7 +64,10 @@ namespace {
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 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
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 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
if(EnableModSched)
PM.add(createModuloSchedulingPass(*this));
+ if(EnableSBModSched)
+ PM.add(createModuloSchedulingSBPass(*this));
+
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before reg alloc:\n"));