mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 10:53:55 +00:00
Run the simplify CFG pass after instcombine which has the effect of deleting
ALL of the global ctor/dtor stuff if it is not used! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
083de22d9f
commit
dc52353833
@ -405,6 +405,10 @@ int main(int argc, char **argv) {
|
|||||||
//
|
//
|
||||||
Passes.add(createInstructionCombiningPass());
|
Passes.add(createInstructionCombiningPass());
|
||||||
|
|
||||||
|
// Delete basic blocks, which optimization passes may have killed...
|
||||||
|
//
|
||||||
|
Passes.add(createCFGSimplificationPass());
|
||||||
|
|
||||||
// Now that we have optimized the program, discard unreachable functions...
|
// Now that we have optimized the program, discard unreachable functions...
|
||||||
//
|
//
|
||||||
Passes.add(createGlobalDCEPass());
|
Passes.add(createGlobalDCEPass());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user