From: johanknol Date: Mon, 23 Apr 2001 15:45:02 +0000 (+0000) Subject: restored findCheaperOp, it was not a good idea X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a0ec02948ec1ca4ce6df37ff88080140e3130ccd;p=fw%2Fsdcc 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 --- 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