diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-10-24 16:11:49 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-10-24 16:11:49 +0000 |
commit | 62d07d6acef9f5fd807b98a509d164bd3d6f0187 (patch) | |
tree | 5e08568619038e685dfa430ee3cefb6140b98aa1 /lib | |
parent | 24321d7e23a482cbd0b7502f43e9026f87a3684d (diff) | |
download | external_llvm-62d07d6acef9f5fd807b98a509d164bd3d6f0187.zip external_llvm-62d07d6acef9f5fd807b98a509d164bd3d6f0187.tar.gz external_llvm-62d07d6acef9f5fd807b98a509d164bd3d6f0187.tar.bz2 |
Don't do dead block elimination in fast mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 18ab218..b12634a 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -64,7 +64,8 @@ bool LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM, PM.add(createPrologEpilogCodeInserter()); // Branch folding must be run after regalloc and prolog/epilog insertion. - PM.add(createBranchFoldingPass()); + if (!Fast) + PM.add(createBranchFoldingPass()); if (PrintMachineCode) // Print the register-allocated code PM.add(createMachineFunctionPrinterPass(&std::cerr)); |