summary refs log tree commit diff
path: root/arm64/emit.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-11-21 14:08:08 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-11-21 14:16:19 +0100
commit87dc3ea290a4ba75f153c5bb8b9fb87ec548e64f (patch)
tree9e63c0a05a9ce1f79720eda3b15cd801726844ab /arm64/emit.c
parent0db06dad63e02b619671bfb3dd25fc92c0856319 (diff)
downloadroux-87dc3ea290a4ba75f153c5bb8b9fb87ec548e64f.tar.gz
fix allocation ordering bug in rega
When we process one block, we
start by allocating registers
for all the temporaries live
at the exit of the block.

Before this patch we processed
temps first, then in doblk() we
would mark globally live registers
allocated. This meant that temps
could get wrongly assigned a live
register.

The fix is simple: we now process
registers first at block exits,
then allocate temps.
Diffstat (limited to 'arm64/emit.c')
0 files changed, 0 insertions, 0 deletions