summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-01-17 06:54:59 +0000
committerAndrew Trick <atrick@apple.com>2012-01-17 06:54:59 +0000
commit8093eac51d23a35b368cd586349aae923f535a4a (patch)
tree06413047f72bc41756b16b5225a8e7b020568fb1 /llvm/lib
parent12728f04ca6ef2490a8fed72f6723f878db1c375 (diff)
downloadbcm5719-llvm-8093eac51d23a35b368cd586349aae923f535a4a.tar.gz
bcm5719-llvm-8093eac51d23a35b368cd586349aae923f535a4a.zip
Moving options declarations around.
More short term hackery until we have a way to configure passes that work on LiveIntervals. llvm-svn: 148289
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/RegAllocBasic.cpp2
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp7
-rw-r--r--llvm/lib/Target/TargetMachine.cpp8
3 files changed, 7 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp
index cb92513d8ec..dbddf722d16 100644
--- a/llvm/lib/CodeGen/RegAllocBasic.cpp
+++ b/llvm/lib/CodeGen/RegAllocBasic.cpp
@@ -149,8 +149,6 @@ void RABasic::getAnalysisUsage(AnalysisUsage &AU) const {
if (StrongPHIElim)
AU.addRequiredID(StrongPHIEliminationID);
AU.addRequiredTransitiveID(RegisterCoalescerPassID);
- if (EnableMachineSched)
- AU.addRequiredID(MachineSchedulerPassID);
AU.addRequired<CalculateSpillWeights>();
AU.addRequired<LiveStacks>();
AU.addPreserved<LiveStacks>();
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index bced80ca540..16832ceaf3d 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -51,6 +51,13 @@ STATISTIC(NumGlobalSplits, "Number of split global live ranges");
STATISTIC(NumLocalSplits, "Number of split local live ranges");
STATISTIC(NumEvicted, "Number of interferences evicted");
+/// EnableMachineSched - temporary flag to enable the machine scheduling pass
+/// until we complete the register allocation pass configuration cleanup.
+static cl::opt<bool>
+EnableMachineSched("enable-misched",
+ cl::desc("Enable the machine instruction scheduling pass."),
+ cl::init(false), cl::Hidden);
+
static cl::opt<SplitEditor::ComplementSpillMode>
SplitSpillMode("split-spill-mode", cl::Hidden,
cl::desc("Spill mode for splitting live ranges"),
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index 90042dc1d52..19819b886c1 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/lib/Target/TargetMachine.cpp
@@ -37,14 +37,6 @@ FunctionSections("ffunction-sections",
cl::desc("Emit functions into separate sections"),
cl::init(false));
-/// EnableMachineSched - temporary flag to enable the machine scheduling pass
-/// until we complete the register allocation pass configuration cleanup.
-static cl::opt<bool, true>
-MachineSchedOpt("enable-misched",
- cl::desc("Enable the machine instruction scheduling pass."),
- cl::location(EnableMachineSched),
- cl::init(false), cl::Hidden);
-
//---------------------------------------------------------------------------
// TargetMachine Class
//
OpenPOWER on IntegriCloud