From f81930ffd6ed807070e4d40bc25c76f85cee8f0b Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 27 Mar 2016 02:00:05 +0000 Subject: [PATCH] compiler: run IPSCCP. This doesn't do much, only frees some registers. --- artiq/compiler/targets.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/artiq/compiler/targets.py b/artiq/compiler/targets.py index eb4381635..c936829e9 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -101,10 +101,13 @@ class Target: # Now, actually optimize the code. llpassmgr.add_function_inlining_pass(275) + llpassmgr.add_ipsccp_pass() llpassmgr.add_instruction_combining_pass() - llpassmgr.add_cfg_simplification_pass() - llpassmgr.add_dead_arg_elimination_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.run(llmodule)