summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-10-24 16:11:49 +0000
committerJim Laskey <jlaskey@mac.com>2006-10-24 16:11:49 +0000
commit62d07d6acef9f5fd807b98a509d164bd3d6f0187 (patch)
tree5e08568619038e685dfa430ee3cefb6140b98aa1 /lib
parent24321d7e23a482cbd0b7502f43e9026f87a3684d (diff)
downloadexternal_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.cpp3
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));