Skip to content

Commit f81930f

Browse files
author
whitequark
committedMar 27, 2016
compiler: run IPSCCP.
This doesn't do much, only frees some registers.
1 parent 7213984 commit f81930f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

Diff for: ‎artiq/compiler/targets.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,13 @@ def optimize(self, llmodule):
101101

102102
# Now, actually optimize the code.
103103
llpassmgr.add_function_inlining_pass(275)
104+
llpassmgr.add_ipsccp_pass()
104105
llpassmgr.add_instruction_combining_pass()
106+
llpassmgr.add_gvn_pass()
105107
llpassmgr.add_cfg_simplification_pass()
108+
109+
# Clean up after optimizing.
106110
llpassmgr.add_dead_arg_elimination_pass()
107-
llpassmgr.add_gvn_pass()
108111
llpassmgr.add_global_dce_pass()
109112

110113
llpassmgr.run(llmodule)

0 commit comments

Comments
 (0)
Please sign in to comment.