* src/mcs51/ralloc.c (deassignLR),
[fw/sdcc] / src / pic16 / ralloc.c
index eeb4e787a1c39790fa0515559f2d3391eca43c97..4a026fcc1a7c31b13d80fb89bcc518a78ce0c08f 100644 (file)
@@ -2000,6 +2000,7 @@ deassignLRs (iCode * ic, eBBlock * ebp)
              (result = OP_SYMBOL (IC_RESULT (ic))) &&  /* has a result */
              result->liveTo > ic->seq &&       /* and will live beyond this */
              result->liveTo <= ebp->lSeq &&    /* does not go beyond this block */
+             result->liveFrom == ic->seq &&    /* does not start before here */
              result->regType == sym->regType &&        /* same register types */
              result->nRegs &&  /* which needs registers */
              !result->isspilt &&       /* and does not already have them */