aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-04-09 17:04:38 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-07-01 00:18:44 +0200
commitb9d74dac4b2ddad5dd90ec36eb2e40963d09f9d8 (patch)
treeff9929611393f01d9d0bd7699279142717404680 /validation/mem2reg
parent362b1cddefc33507ac55cb1c3a1ef1632367f3d2 (diff)
downloadsparse-dev-b9d74dac4b2ddad5dd90ec36eb2e40963d09f9d8.tar.gz
ssa: phase 3: rename phi-nodes
This implement the last phase of the SSA conversion: the renaming of the variables defined by a phi-nodes. In this implementation, this need to be done last because * we need the know the pseudo of each operands * we place the phi-source lazily. The implementation itself is very straight-forward and scan after all OP_PHIs, create the phi-sources and simply use the mapping of the preceding phase to lookup their value. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/mem2reg')
0 files changed, 0 insertions, 0 deletions