aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-05 20:30:36 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-05 20:30:36 +0000
commitb4093593a76c81520893762e237f55d86f6b5191 (patch)
tree311fdfe17af85d5b88bad1b20f0b688877326e3f /lib/CodeGen/LLVMTargetMachine.cpp
parente28232e507e16d8db4d3f7d6eeb37e724fd21f9b (diff)
downloadexternal_llvm-b4093593a76c81520893762e237f55d86f6b5191.zip
external_llvm-b4093593a76c81520893762e237f55d86f6b5191.tar.gz
external_llvm-b4093593a76c81520893762e237f55d86f6b5191.tar.bz2
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index faaa41b..5f19660 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));