summary refs log tree commit diff
path: root/amd64
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-12-13 11:34:20 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-12-14 23:05:35 +0100
commit15e25a61b38b250c7543437a093a9efe076cce0a (patch)
tree51708b5c1a4a3503fe09061bf7663b14f771eb1a /amd64
parentc5ea06c1360a7bb93cf1a5303f804855a38a82ef (diff)
downloadroux-15e25a61b38b250c7543437a093a9efe076cce0a.tar.gz
fix coalesce() to produce valid ssa
When multiple stack slots are coalesced
one 'alloc' instruction is kept in the il
and the other ones are removed and have
their uses replaced by the result of the
selected one. To produce valid ssa, it
must be ensured that the uses that get
replaced are dominated by the selected
'alloc' instruction. This patch ensures
dominance by moving the selected alloc up
in the start block as necessary.
Diffstat (limited to 'amd64')
0 files changed, 0 insertions, 0 deletions