forked from OSchip/llvm-project
add the branch folding pass as a late cleanup pass for all targets. For now
it just deletes empty MBB's. Soon it will do more :) llvm-svn: 30941
This commit is contained in:
parent
9516812316
commit
55ad08a59b
|
@ -63,6 +63,9 @@ bool LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
|
|||
// Insert prolog/epilog code. Eliminate abstract frame index references...
|
||||
PM.add(createPrologEpilogCodeInserter());
|
||||
|
||||
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
||||
PM.add(createBranchFoldingPass());
|
||||
|
||||
if (PrintMachineCode) // Print the register-allocated code
|
||||
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
||||
|
||||
|
|
Loading…
Reference in New Issue