* src/mcs51/ralloc.c (deassignLR),
[fw/sdcc] / src / hc08 / ralloc.c
index 25c75138bf9ab286e144dae5ad27ef3e0e5b2d7e..382c2edeac9da19d1e9f5d6da4cae74d5793e868 100644 (file)
@@ -1032,6 +1032,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 */