mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
The new CFrontend generates LOTs of basic blocks that just fall through and do
other funky stuff. Clean it up early. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3c053a0a98
commit
a4dd4e2de8
@ -70,6 +70,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
|||||||
addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
|
addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
|
||||||
addPass(PM, createConstantMergePass()); // Merge dup global constants
|
addPass(PM, createConstantMergePass()); // Merge dup global constants
|
||||||
addPass(PM, createVerifierPass()); // Verify that input is correct
|
addPass(PM, createVerifierPass()); // Verify that input is correct
|
||||||
|
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
|
||||||
addPass(PM, createDeadInstEliminationPass()); // Remove Dead code/vars
|
addPass(PM, createDeadInstEliminationPass()); // Remove Dead code/vars
|
||||||
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
|
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
|
||||||
addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
|
addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
|
||||||
|
Loading…
Reference in New Issue
Block a user