github/workflows/pycopy-test: Upgrade Pycopy to 3.6.1.
[ScratchABlock.git] / script_i_func_params_returns.py
blob9185b6a8301a6e002195dee3dda29540a130e928
1 from xform import *
2 from dataflow import *
4 import script_i_preserveds
6 def apply(cfg):
7 script_i_preserveds.apply(cfg)
9 # Find out underestimated, but true params of function.
10 # The problem is that correct analysis overestimates liveness,
11 # We get a bunch of registers, and we don't even understand
12 # how we ended up with such a bunch. Underestimate pass will
13 # allow us to classify full param set into true-params and
14 # maybe-params.
15 analyze_live_vars(cfg, underestimate=True)
16 estimate_params(cfg)
18 analyze_live_vars(cfg)
19 collect_params(cfg)
20 collect_call_live_out(cfg)
22 annotate_params(cfg)