updateSpillocation did not check for nosupdate flag for inductions
[fw/sdcc] / src / SDCCcse.c
index 1420b8ffbfef486131d24a6b859c6446847d11d6..258d5fef2b5aeb21b42decdfeb67684c8106af26 100644 (file)
@@ -901,6 +901,7 @@ updateSpillLocation (iCode * ic, int induction)
                /* special case for inductions */
                if (induction && 
                    OP_SYMBOL(IC_RIGHT(ic))->isreqv && 
+                   !OP_SYMBOL(IC_RESULT (ic))->noSpilLoc &&
                    !SPIL_LOC(IC_RESULT(ic))) {
                        SPIL_LOC (IC_RESULT (ic)) = SPIL_LOC (IC_RIGHT (ic));
                }