summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-02-08 21:22:57 +0000
committerAndrew Trick <atrick@apple.com>2012-02-08 21:22:57 +0000
commit3ed444a16a5388558799e42eac2a086e526af2b1 (patch)
tree81df474c5a6b86e035ac228b1446737f76837bd0 /llvm/lib
parentdf7e3769b5765e80e816e6a6897c4dfc41263204 (diff)
downloadbcm5719-llvm-3ed444a16a5388558799e42eac2a086e526af2b1.tar.gz
bcm5719-llvm-3ed444a16a5388558799e42eac2a086e526af2b1.zip
Move pass configuration out of pass constructors: StackSlotColoring.
llvm-svn: 150097
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/Passes.cpp2
-rw-r--r--llvm/lib/CodeGen/StackSlotColoring.cpp4
-rw-r--r--llvm/lib/Target/PTX/PTXTargetMachine.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp
index 877b4bf9ce0..01662743afe 100644
--- a/llvm/lib/CodeGen/Passes.cpp
+++ b/llvm/lib/CodeGen/Passes.cpp
@@ -240,7 +240,7 @@ void TargetPassConfig::addMachinePasses() {
// FIXME: Re-enable coloring with register when it's capable of adding
// kill markers.
if (!DisableSSC)
- PM.add(createStackSlotColoringPass(false));
+ PM.add(createStackSlotColoringPass());
// Run post-ra machine LICM to hoist reloads / remats.
if (!DisablePostRAMachineLICM)
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp
index 9e84f3c408f..908d108c6ee 100644
--- a/llvm/lib/CodeGen/StackSlotColoring.cpp
+++ b/llvm/lib/CodeGen/StackSlotColoring.cpp
@@ -132,8 +132,8 @@ INITIALIZE_PASS_DEPENDENCY(MachineLoopInfo)
INITIALIZE_PASS_END(StackSlotColoring, "stack-slot-coloring",
"Stack Slot Coloring", false, false)
-FunctionPass *llvm::createStackSlotColoringPass(bool RegColor) {
- return new StackSlotColoring(RegColor);
+FunctionPass *llvm::createStackSlotColoringPass() {
+ return new StackSlotColoring(/*RegColor=*/false);
}
namespace {
diff --git a/llvm/lib/Target/PTX/PTXTargetMachine.cpp b/llvm/lib/Target/PTX/PTXTargetMachine.cpp
index 6c7f7b1c151..f96f3e3be0b 100644
--- a/llvm/lib/Target/PTX/PTXTargetMachine.cpp
+++ b/llvm/lib/Target/PTX/PTXTargetMachine.cpp
@@ -326,7 +326,7 @@ bool PTXPassConfig::addCodeGenPasses(MCContext *&OutContext) {
if (getOptLevel() != CodeGenOpt::None) {
// FIXME: Re-enable coloring with register when it's capable of adding
// kill markers.
- PM.add(createStackSlotColoringPass(false));
+ PM.add(createStackSlotColoringPass());
// FIXME: Post-RA LICM has asserts that fire on virtual registers.
// Run post-ra machine LICM to hoist reloads / remats.
OpenPOWER on IntegriCloud