From: johanknol Date: Tue, 16 Oct 2001 08:48:30 +0000 (+0000) Subject: Without this algebraicOpts() gets confused X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e96570071ab824f873c84ac0fcefc5a7687d037f;p=fw%2Fsdcc Without this algebraicOpts() gets confused git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1407 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCcse.c b/src/SDCCcse.c index cdc20e1e..54a3ca2a 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -1515,7 +1515,7 @@ cseBBlock (eBBlock * ebb, int computeOnly, pdic = NULL; } -#if 0 +#if 0 /* if found then eliminate this and add to */ /* to cseSet an element containing result */ /* of this with previous opcode */ @@ -1577,6 +1577,7 @@ cseBBlock (eBBlock * ebb, int computeOnly, if (pdic && IS_ITEMP(IC_RESULT(ic))) { /* if previous definition found change this to an assignment */ ic->op = '='; + IC_LEFT(ic) = NULL; IC_RIGHT(ic) = operandFromOperand(IC_RESULT(pdic)); SET_ISADDR(IC_RESULT(ic),0); SET_ISADDR(IC_RIGHT (ic),0);