From f4dd79defe4c1884e7104e453067c145c660499f Mon Sep 17 00:00:00 2001 From: johanknol Date: Thu, 18 Oct 2001 19:09:32 +0000 Subject: [PATCH] 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 --- src/SDCCcse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) && -- 2.30.2