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 | 1941bfa3616ab3ea8a1c96d02b84979a0dda6d68 (patch) | |
tree | d0f1227aca6b5f6f4ef09e62dc2480f4d45f0747 /llvm/lib | |
parent | 5efa6c5d1044929ad3fec3915c2d4b33091e38ef (diff) | |
download | bcm5719-llvm-1941bfa3616ab3ea8a1c96d02b84979a0dda6d68.tar.gz bcm5719-llvm-1941bfa3616ab3ea8a1c96d02b84979a0dda6d68.zip |
Don't do dead block elimination in fast mode.
llvm-svn: 31155
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 18ab2184568..b12634ae281 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/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)); |