Move pass configuration out of pass constructors: StackSlotColoring.

llvm-svn: 150097
This commit is contained in:
Andrew Trick 2012-02-08 21:22:57 +00:00
parent df7e3769b5
commit 3ed444a16a
4 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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 {

View File

@ -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.