From: johanknol Date: Thu, 18 Oct 2001 19:09:32 +0000 (+0000) Subject: Hmmm, didn't do that in my early days just because ... but this is better X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=f4dd79defe4c1884e7104e453067c145c660499f;p=fw%2Fsdcc Hmmm, didn't do that in my early days just because ... but this is better git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1416 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCcse.c b/src/SDCCcse.c index 1d6b3d9c..2af50769 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -301,8 +301,9 @@ DEFSETFUNC (findCheaperOp) *opp = IC_RESULT (cdp->diCode); if ((*opp) && - //(SPEC_USIGN(operandType (cop))==SPEC_USIGN(operandType (*opp))) && - (SPEC_LONG(operandType (cop))==SPEC_LONG(operandType (*opp)))) + (isOperandLiteral(*opp) || + (SPEC_USIGN(operandType (cop))==SPEC_USIGN(operandType (*opp)) && + (SPEC_LONG(operandType (cop))==SPEC_LONG(operandType (*opp)))))) { if ((isGlobalInNearSpace (cop) &&