Without this algebraicOpts() gets confused
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 16 Oct 2001 08:48:30 +0000 (08:48 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 16 Oct 2001 08:48:30 +0000 (08:48 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1407 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCcse.c

index cdc20e1e52c53f5bcfa9b9b398b6fee40bac0392..54a3ca2a8d4b738bf9670fd1a605ce4ab8f3fd7b 100644 (file)
@@ -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);