mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 00:27:31 +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! llvm-svn: 6916
This commit is contained in:
parent
4b18955832
commit
caa0d010d6
@ -405,6 +405,10 @@ int main(int argc, char **argv) {
|
||||
//
|
||||
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...
|
||||
//
|
||||
Passes.add(createGlobalDCEPass());
|
||||
|
Loading…
Reference in New Issue
Block a user