From b38770eb2c77362175dd9fe1c5bbe7d2fa8b74bf Mon Sep 17 00:00:00 2001 From: sandeep Date: Sat, 1 Sep 2001 15:38:50 +0000 Subject: [PATCH] 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 --- src/SDCCcse.c | 1 + 1 file changed, 1 insertion(+) 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)); } -- 2.30.2