Don't do dead block elimination in fast mode.

llvm-svn: 31155
This commit is contained in:
Jim Laskey 2006-10-24 16:11:49 +00:00
parent 5efa6c5d10
commit 1941bfa361
1 changed files with 2 additions and 1 deletions

View File

@ -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));