summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-07-13 17:31:29 +0000
committerDale Johannesen <dalej@apple.com>2007-07-13 17:31:29 +0000
commit72f159640382a16e036b63dcb9c0b427e6d5dc0a (patch)
treed2c6038788bd14ed9d1ff38196d95ae83fbe0601 /lib/CodeGen/LLVMTargetMachine.cpp
parente7e7d0d7e39d0c7c659d26b97e8081fce0fcd749 (diff)
downloadexternal_llvm-72f159640382a16e036b63dcb9c0b427e6d5dc0a.zip
external_llvm-72f159640382a16e036b63dcb9c0b427e6d5dc0a.tar.gz
external_llvm-72f159640382a16e036b63dcb9c0b427e6d5dc0a.tar.bz2
Modify previous patch per review comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index b50b275..b72704b 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -79,7 +79,8 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
PM.add(createPrologEpilogCodeInserter());
// Second pass scheduler.
- PM.add(createPostRAScheduler());
+ if (!Fast)
+ PM.add(createPostRAScheduler());
// Branch folding must be run after regalloc and prolog/epilog insertion.
if (!Fast)
@@ -185,7 +186,8 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
PM.add(createMachineFunctionPrinterPass(cerr));
// Second pass scheduler.
- PM.add(createPostRAScheduler());
+ if (!Fast)
+ PM.add(createPostRAScheduler());
// Branch folding must be run after regalloc and prolog/epilog insertion.
if (!Fast)