* src/mcs51/ralloc.c (deassignLR),
[fw/sdcc] / src / ds390 / ralloc.c
index 1bb265e9d067bd5940b25cb962f36ae8649d3f5d..c25c6d46fa424971e15aaa1f168eff14dc860f91 100644 (file)
@@ -991,6 +991,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 */