summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-30 22:33:16 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-30 22:33:16 +0000
commit6a323e16f2d772c76430b9b05c7775a827dda9c9 (patch)
treeba8ba0ec6e312e2e3285b73b5500359cc176d359 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent9cedf2b7c673e71dbddf405c3afc608bf232d1b0 (diff)
downloadbcm5719-llvm-6a323e16f2d772c76430b9b05c7775a827dda9c9.tar.gz
bcm5719-llvm-6a323e16f2d772c76430b9b05c7775a827dda9c9.zip
Don't run stack slot coloring if -fast.
llvm-svn: 52933
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 1c8ce0a44c4..97fe35c2f4b 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -99,7 +99,8 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
PM.add(createRegisterAllocator());
// Perform stack slot coloring.
- PM.add(createStackSlotColoringPass());
+ if (!Fast)
+ PM.add(createStackSlotColoringPass());
if (PrintMachineCode) // Print the register-allocated code
PM.add(createMachineFunctionPrinterPass(cerr));
@@ -235,7 +236,8 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM,
PM.add(createRegisterAllocator());
// Perform stack slot coloring.
- PM.add(createStackSlotColoringPass());
+ if (!Fast)
+ PM.add(createStackSlotColoringPass());
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(cerr));
OpenPOWER on IntegriCloud