diff options
author | Andrew Trick <atrick@apple.com> | 2012-02-08 21:22:57 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-02-08 21:22:57 +0000 |
commit | 32986572bfe5a30c500d03b8d55174720f08f0bf (patch) | |
tree | 1d5437f1a6e17bc43c0c0d534d34a73a0c5365f0 | |
parent | c7d081b5946b9ff9f7400d5b41f36cad3fc317aa (diff) |
Move pass configuration out of pass constructors: StackSlotColoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150097 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/Passes.h | 2 | ||||
-rw-r--r-- | lib/CodeGen/Passes.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/StackSlotColoring.cpp | 4 | ||||
-rw-r--r-- | lib/Target/PTX/PTXTargetMachine.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index b0b36db0fc..204898f8d6 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -342,7 +342,7 @@ namespace llvm { FunctionPass *createOptimizePHIsPass(); /// createStackSlotColoringPass - This pass performs stack slot coloring. - FunctionPass *createStackSlotColoringPass(bool); + FunctionPass *createStackSlotColoringPass(); /// createStackProtectorPass - This pass adds stack protectors to functions. FunctionPass *createStackProtectorPass(const TargetLowering *tli); diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 877b4bf9ce..01662743af 100644 --- a/lib/CodeGen/Passes.cpp +++ b/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/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp index 9e84f3c408..908d108c6e 100644 --- a/lib/CodeGen/StackSlotColoring.cpp +++ b/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/lib/Target/PTX/PTXTargetMachine.cpp b/lib/Target/PTX/PTXTargetMachine.cpp index 6c7f7b1c15..f96f3e3be0 100644 --- a/lib/Target/PTX/PTXTargetMachine.cpp +++ b/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. |