diff options
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp b/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp index bb99166edd7..cac7e63af32 100644 --- a/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp +++ b/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp @@ -69,7 +69,7 @@ void TargetFrameLowering::determineCalleeSaves(MachineFunction &MF, // When interprocedural register allocation is enabled caller saved registers // are preferred over callee saved registers. - if (UseIPRA && isSafeForNoCSROpt(MF.getFunction())) + if (MF.getTarget().Options.EnableIPRA && isSafeForNoCSROpt(MF.getFunction())) return; // Get the callee saved register list... diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index dccdc52c75a..fcb375e8687 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -124,10 +124,6 @@ static cl::opt<CFLAAType> UseCFLAA( "Enable both variants of CFL-AA"), clEnumValEnd)); -cl::opt<bool> UseIPRA("enable-ipra", cl::init(false), cl::Hidden, - cl::desc("Enable interprocedural register allocation " - "to reduce load/store at procedure calls.")); - /// Allow standard passes to be disabled by command line options. This supports /// simple binary flags that either suppress the pass or do nothing. /// i.e. -disable-mypass=false has no effect. @@ -522,7 +518,7 @@ void TargetPassConfig::addISelPrepare() { addPreISel(); // Force codegen to run according to the callgraph. - if (UseIPRA) + if (TM->Options.EnableIPRA) addPass(new DummyCGSCCPass); // Add both the safe stack and the stack protection passes: each of them will @@ -561,7 +557,7 @@ void TargetPassConfig::addISelPrepare() { void TargetPassConfig::addMachinePasses() { AddingMachinePasses = true; - if (UseIPRA) + if (TM->Options.EnableIPRA) addPass(createRegUsageInfoPropPass()); // Insert a machine instr printer pass after the specified pass. @@ -649,7 +645,7 @@ void TargetPassConfig::addMachinePasses() { addPreEmitPass(); - if (UseIPRA) + if (TM->Options.EnableIPRA) // Collect register usage information and produce a register mask of // clobbered registers, to be used to optimize call sites. addPass(createRegUsageInfoCollector()); |