Cosmetic change in peeph.c
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 11 Feb 2000 20:05:13 +0000 (20:05 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 11 Feb 2000 20:05:13 +0000 (20:05 +0000)
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
src/SDCCpeeph.c

index 9ce0698fa483dc06bde608796fd3a98dee0d4da2..8df03baeaa125486ae57af7b33d5b24d3cd171cd 100644 (file)
@@ -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)));
index d64619ab9210a101e3a508395f62ca70d6410f43..2a0ed06950fb19c028b1c911812a4dd6b46fe656 100644 (file)
@@ -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)