6 # Various algos below don't work with no explicit entry in CFG
8 # Also don't work with >1 entries
9 remove_unreachable_entries(cfg
)
10 # Various algos below require single-exit CFG
13 foreach_inst(cfg
, sub_const_to_add
)
14 # Initial pass on simplifying expressions
15 foreach_inst(cfg
, simplify_inst
)
17 analyze_live_vars(cfg
)
18 insert_initial_regs(cfg
)
20 analyze_reach_defs(cfg
)
22 #const_propagation(cfg)
23 #copy_propagation(cfg)
27 analyze_live_vars(cfg
)
29 foreach_bblock(cfg
, dead_code_elimination
)