restored findCheaperOp, it was not a good idea
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 23 Apr 2001 15:45:02 +0000 (15:45 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 23 Apr 2001 15:45:02 +0000 (15:45 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@754 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCcse.c

index a8e0e005468661be1145a973781061bac8d6cb3b..126addff5460ee3e38c235980e49104b3c936d0b 100644 (file)
@@ -272,19 +272,6 @@ DEFSETFUNC (findCheaperOp)
               take into consideration if right side
               an induction variable
            */
-
-#if SomeOneUnderStandsThis
-           /* This causes the bug:
-              
-              void test (unsigned u) {
-                // the following cast is ignored
-                for (; (int) u >= 0;)
-                  ++u;
-                }
-              }
-
-              where casts are ignored */
-
            if (!POINTER_SET (cdp->diCode) &&
                IS_ITEMP (IC_RESULT (cdp->diCode)) &&
                IS_ITEMP (IC_RIGHT (cdp->diCode)) &&
@@ -297,7 +284,6 @@ DEFSETFUNC (findCheaperOp)
              *opp = IC_RESULT (cdp->diCode);
            else
              *opp = IC_RIGHT (cdp->diCode);
-#endif
          }
       }
       else