forked from M-Labs/artiq
1
0
Fork 0

compiler: run IPSCCP.

This doesn't do much, only frees some registers.
This commit is contained in:
whitequark 2016-03-27 02:00:05 +00:00
parent 7213984330
commit f81930ffd6
1 changed files with 5 additions and 2 deletions

View File

@ -101,10 +101,13 @@ class Target:
# Now, actually optimize the code. # Now, actually optimize the code.
llpassmgr.add_function_inlining_pass(275) llpassmgr.add_function_inlining_pass(275)
llpassmgr.add_ipsccp_pass()
llpassmgr.add_instruction_combining_pass() llpassmgr.add_instruction_combining_pass()
llpassmgr.add_cfg_simplification_pass()
llpassmgr.add_dead_arg_elimination_pass()
llpassmgr.add_gvn_pass() llpassmgr.add_gvn_pass()
llpassmgr.add_cfg_simplification_pass()
# Clean up after optimizing.
llpassmgr.add_dead_arg_elimination_pass()
llpassmgr.add_global_dce_pass() llpassmgr.add_global_dce_pass()
llpassmgr.run(llmodule) llpassmgr.run(llmodule)