diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-30 22:33:16 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-30 22:33:16 +0000 |
commit | 2ea55507ac8f9c08ece82880c86d12fa07e81aff (patch) | |
tree | 5a269b1f933bbb6d9756811f6a31c7608fccde43 /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 587f6b004d41e6f38ffb88808004fc73c7849479 (diff) | |
download | external_llvm-2ea55507ac8f9c08ece82880c86d12fa07e81aff.tar.gz external_llvm-2ea55507ac8f9c08ece82880c86d12fa07e81aff.tar.bz2 external_llvm-2ea55507ac8f9c08ece82880c86d12fa07e81aff.zip |
Don't run stack slot coloring if -fast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 1c8ce0a44c..97fe35c2f4 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/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)); |