aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-19 11:22:58 +0100
committerlemon <lsof@mailbox.org>2025-11-19 11:22:58 +0100
commit34ff9d31d2ead5bdc2a22518c4496b8070fd679b (patch)
tree21ae9ccfa730c482e9bf4007cf2a954cbb21accc /ir
parent84af78c1634252da5dfaaed37aedd17b09929703 (diff)
mem2reg: fix edgecase..
Diffstat (limited to 'ir')
-rw-r--r--ir/optmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/optmem.c b/ir/optmem.c
index a9c8dc4..e7ad0f5 100644
--- a/ir/optmem.c
+++ b/ir/optmem.c
@@ -76,8 +76,8 @@ Redo:
union ref it = mkref(RTMP, use->u);
union ref vphi2 = deltrivialphis(sb, use->blk, it);
if (vphi2.bits != it.bits) {
+ same = vphi2;
/* deletion happened so phiref use may have changed */
- if (same.bits == it.bits) same.bits = vphi2.bits;
goto Redo;
}
}