diff options
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index b50b2753922..b72704bd805 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/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) |

