diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-05-05 20:30:36 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-05-05 20:30:36 +0000 |
commit | f9a9b51429b284ad85f1162592a10918c5665733 (patch) | |
tree | 311fdfe17af85d5b88bad1b20f0b688877326e3f /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 58deef5559db65f742fc67adcdaba04ce83f0764 (diff) |
Enable stack coloring with regs at -O3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index faaa41b68b..5f19660a26 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -193,7 +193,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, // Perform stack slot coloring. if (OptLevel != CodeGenOpt::None) - PM.add(createStackSlotColoringPass()); + PM.add(createStackSlotColoringPass(OptLevel >= CodeGenOpt::Aggressive)); if (PrintMachineCode) // Print the register-allocated code PM.add(createMachineFunctionPrinterPass(cerr)); |