From: frief Date: Sun, 25 Jul 2004 22:25:49 +0000 (+0000) Subject: added contributed fix for "bug" #995347 as peephole 177.e. Thanks to anonymous X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=39f859420281e41f09ae24cc29614e46b96493e9;p=fw%2Fsdcc added contributed fix for "bug" #995347 as peephole 177.e. Thanks to anonymous git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3398 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/mcs51/peeph.def b/src/mcs51/peeph.def index 6225543d..7c2e1199 100644 --- a/src/mcs51/peeph.def +++ b/src/mcs51/peeph.def @@ -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