diff options
| author | 2025-11-19 11:22:58 +0100 | |
|---|---|---|
| committer | 2025-11-19 11:22:58 +0100 | |
| commit | 34ff9d31d2ead5bdc2a22518c4496b8070fd679b (patch) | |
| tree | 21ae9ccfa730c482e9bf4007cf2a954cbb21accc | |
| parent | 84af78c1634252da5dfaaed37aedd17b09929703 (diff) | |
mem2reg: fix edgecase..
| -rw-r--r-- | ir/optmem.c | 2 |
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; } } |