]> git.gag.com Git - fw/sdcc/commitdiff
added contributed fix for "bug" #995347 as peephole 177.e. Thanks to anonymous
authorfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 25 Jul 2004 22:25:49 +0000 (22:25 +0000)
committerfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 25 Jul 2004 22:25:49 +0000 (22:25 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3398 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/mcs51/peeph.def

index 6225543dfcc0e051627705fc3ea2fe8b15b37e34..7c2e11997b5fba8c68ab1a380cdb280de30edeae 100644 (file)
@@ -1032,6 +1032,15 @@ replace {
        mov     %3,%4
 } if notVolatile %1 %2
 
+// applies to f.e. bug-607243.c
+replace {
+       mov     r%1,%2
+       mov     ar%1,%3
+} by {
+       ;       peephole 177.e  removed redundant move
+       mov     ar%1,%3
+}
+
 replace {
        mov     a,%1
        mov     b,a