diff options
-rw-r--r-- | lisc/rega.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisc/rega.c b/lisc/rega.c index dc01ce0..53807d4 100644 --- a/lisc/rega.c +++ b/lisc/rega.c @@ -311,13 +311,14 @@ rega(Fn *fn) if (b->s1 && b1->loop <= b->s1->loop) b1 = b->s1; if (b->s2 && b1->loop <= b->s2->loop) - b1 = b->s1; + b1 = b->s2; /* try to reuse the register * assignment of the most frequent * successor */ if (b1 != b) for (t=Tmp0; t<fn->ntmp; t++) + if (tmp[t].hint == -1) if (BGET(b->out, t)) if ((r = rfind(&beg[b1->id], t)) != -1) radd(&cur, t, r); |