aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-20 19:11:15 +0200
committerlemon <lsof@mailbox.org>2023-06-20 19:11:15 +0200
commit8cea6c2e91641b06921b4e358c73c60981ba366d (patch)
tree060198058427b9272f2167abd5b36580cd917ef7 /ir.c
parent3abdb713474bd282b9ce322abf7ec3609af2eb12 (diff)
add basic mem2reg
promotes uniform stack slots to temporaries currently only for immutable variables, next thing to implement is ssa construction
Diffstat (limited to 'ir.c')
-rw-r--r--ir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir.c b/ir.c
index 2a7de47..9f6e86d 100644
--- a/ir.c
+++ b/ir.c
@@ -413,6 +413,7 @@ irfini(struct function *fn)
extern int nerror;
if (!nerror) {
abi0(fn);
+ mem2reg(fn);
lowerintrin(fn);
mctarg->isel(fn);
regalloc(fn);