forked from OSchip/llvm-project
Move pass configuration out of pass constructors: StackSlotColoring.
llvm-svn: 150097
This commit is contained in:
parent
df7e3769b5
commit
3ed444a16a
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue