From: sandeep Date: Sat, 1 Sep 2001 15:38:50 +0000 (+0000) Subject: updateSpillocation did not check for nosupdate flag for inductions X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b38770eb2c77362175dd9fe1c5bbe7d2fa8b74bf;p=fw%2Fsdcc updateSpillocation did not check for nosupdate flag for inductions git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1203 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCcse.c b/src/SDCCcse.c index 1420b8ff..258d5fef 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -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)); }