Don't do dead block elimination in fast mode.
llvm-svn: 31155
This commit is contained in:
parent
5efa6c5d10
commit
1941bfa361
|
@ -64,7 +64,8 @@ bool LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
|
||||||
PM.add(createPrologEpilogCodeInserter());
|
PM.add(createPrologEpilogCodeInserter());
|
||||||
|
|
||||||
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
// 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
|
if (PrintMachineCode) // Print the register-allocated code
|
||||||
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
||||||
|
|
Loading…
Reference in New Issue