From a0ec02948ec1ca4ce6df37ff88080140e3130ccd Mon Sep 17 00:00:00 2001 From: johanknol Date: Mon, 23 Apr 2001 15:45:02 +0000 Subject: [PATCH] restored findCheaperOp, it was not a good idea git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@754 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCcse.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/SDCCcse.c b/src/SDCCcse.c index a8e0e005..126addff 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -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 -- 2.39.5