From 6240f1651dbbc0a6392b5bc3db0709c78e4d4d42 Mon Sep 17 00:00:00 2001 From: sandeep Date: Fri, 11 Feb 2000 20:05:13 +0000 Subject: [PATCH] Cosmetic change in peeph.c Found better way to handle Michaels spillocation problem cse.c git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@100 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCcse.c | 2 +- src/SDCCpeeph.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/SDCCcse.c b/src/SDCCcse.c index 9ce0698f..8df03bae 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -762,7 +762,7 @@ void updateSpillLocation ( iCode *ic) if (ASSIGN_ITEMP_TO_ITEMP(ic) && !SPIL_LOC(IC_RIGHT(ic)) && - bitVectnBitsOn(OP_USES(IC_RIGHT(ic))) == 0 && + !bitVectBitsInCommon(OP_DEFS(IC_RIGHT(ic)),OP_USES(IC_RESULT(ic))) && OP_SYMBOL(IC_RESULT(ic))->isreqv) { setype = getSpec(operandType(IC_RESULT(ic))); diff --git a/src/SDCCpeeph.c b/src/SDCCpeeph.c index d64619ab..2a0ed069 100644 --- a/src/SDCCpeeph.c +++ b/src/SDCCpeeph.c @@ -639,9 +639,6 @@ void peepHole (lineNode **pls ) else replaceRule (&spl, mtail,pr); - /* if it was the start then replace - the start */ - /* if restart rule type then start at the top again */ if (pr->restart) -- 2.30.2