Skip to content

Commit

Permalink
compiler: run IPSCCP.
Browse files Browse the repository at this point in the history
This doesn't do much, only frees some registers.
whitequark committed Mar 27, 2016
1 parent 7213984 commit f81930f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion artiq/compiler/targets.py
Original file line number Diff line number Diff line change
@@ -101,10 +101,13 @@ def optimize(self, llmodule):

# Now, actually optimize the code.
llpassmgr.add_function_inlining_pass(275)
llpassmgr.add_ipsccp_pass()
llpassmgr.add_instruction_combining_pass()
llpassmgr.add_gvn_pass()
llpassmgr.add_cfg_simplification_pass()

# Clean up after optimizing.
llpassmgr.add_dead_arg_elimination_pass()
llpassmgr.add_gvn_pass()
llpassmgr.add_global_dce_pass()

llpassmgr.run(llmodule)

0 comments on commit f81930f

Please sign in to comment.