~lsof/antcc

40f1c14f7594f6e979316ad8f6bfff51341ad33d — lemon 1 year, 3 months ago cc426d7
regalloc: update preds during simplify pass
1 files changed, 7 insertions(+), 1 deletions(-)

M regalloc.c
M regalloc.c => regalloc.c +7 -1
@@ 762,7 762,13 @@ regalloc(struct function *fn)
            if (p->s1 == blk) p->s1 = next;
            else if (p->s2 == blk) p->s2 = next;
            else continue;
            goto DelBlk;
            for (int i = 0; i < next->npred; ++i) {
               if (blkpred(next, i) == blk) {
                  blkpred(next, i) = p;
                  goto DelBlk;
               }
            }
            assert(0);
         }
      }
   } while ((blk = blk->lnext) != fn->entry);