diff options
| author | 2025-10-24 13:50:28 +0200 | |
|---|---|---|
| committer | 2025-10-24 13:50:28 +0200 | |
| commit | c99af780298a7ec0982f269816da9c7b8aaaabf2 (patch) | |
| tree | c03692e103daa15ca472bd281f3b2bd25101cfab | |
| parent | 968f5211d2c64f01c02d416a9ca197b1f43dfc2a (diff) | |
mem2reg ssa construction silly optimization
| -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 1c137b7..471f11c 100644 --- a/ir/optmem.c +++ b/ir/optmem.c @@ -151,7 +151,7 @@ Recur: for (int i = 0; i < blk->npred; ++i) { struct block *p = blkpred(blk, i); if (wasvisited(p)) continue; - if (!trysealrec(sb, p)) return 0; + if (p->id > sb->lastvisit) return 0; } bsset(sb->sealed, blk->id); |