]> git.gag.com Git - fw/sdcc/blobdiff - src/pic/peeph.def
Added pcodeflow.c - much of pcode.c will eventually get moved here.
[fw/sdcc] / src / pic / peeph.def
index 79bdb92be38d297755261d2f70ed443a9d60ade0..44a9b966c6ed8455dd6b9d7bb01269097e376c39 100644 (file)
@@ -258,12 +258,38 @@ replace restart {
        movwf   %2
 } if NZ
 
+//replace restart {
+//     movwf   %1
+//     iorlw   0
+//     movf    %1,w
+//} by {
+//     ; peep 10 - Removed unnecessary iorlw
+//     movwf   %1
+//     movf    %1
+//} 
+
+// From: Frieder Ferlemann
+
 replace restart {
-       movwf   %1
-       iorlw   0
-       movf    %1,w
+        iorlw   0
 } by {
-       ; peep 10 - Removed unnecessary iorlw
-       movwf   %1
-       movf    %1
+        ; peep 10a - Removed unnecessary iorlw
+} if NZ
+
+// From: Frieder Ferlemann
+
+replace restart {
+        xorlw   0
+} by {
+        ; peep 10b - Removed unnecessary xorlw
+} if NZ
+
+// From: Frieder Ferlemann
+
+replace restart {
+        movf    %1,w
+        movwf   %1
+} by {
+        ; peep 11 - Removed redundant move
+        movf    %1,w
 }