added patterns for *p++ local and external p
authorsater <none@none>
Fri, 3 Aug 1984 16:37:15 +0000 (16:37 +0000)
committersater <none@none>
Fri, 3 Aug 1984 16:37:15 +0000 (16:37 +0000)
added pattern to remove some badly placed dups

util/opt/patterns

index 60325df..dffce3a 100644 (file)
@@ -482,3 +482,11 @@ lal loi loc loc loc loc ior $2==4*w && $7==4*w && ($3==0)+($4==0)+($5==0)+($6==0
        lol $1+3*w loc $3 ior w lol $1+2*w loc $4 ior w lol $1+w loc $5 ior w lol $1 loc $6 ior w
 loc dup stl loc dup stl $2==2 && $5==2:
        loc $1 stl $3 loc $4 stl $6 loc $1 loc $4
+LLP LLP adp SLP sti $2==$4 && (!notreg($2) || $5!=p):
+       LLP $1 sti $5 LLP $2 adp $3 SLP $4
+LEP LEP adp SEP sti $2==$4 && $5!=p:
+       LEP $1 sti $5 LEP $2 adp $3 SEP $4
+lil inc dup sil $1==$4 && $3==w:
+       lil $1 inc sil $1 lil $1
+lil dec dup sil $1==$4 && $3==w:
+       lil $1 dec sil $1 lil $1