Reenabled peephole 0t
authorspth <spth@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 3 Apr 2009 16:18:37 +0000 (16:18 +0000)
committerspth <spth@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 3 Apr 2009 16:18:37 +0000 (16:18 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5425 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/z80/peeph-z80.def

index 4b529afb400ec4beb044b6beb518290e9846a9f4..7faafa69f981646f9b03abab7e32855b5aec3278 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
+
+       * src/z80/peeph-z80.def:
+         Reenabled peephole 0t.
+
 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
 
        * src/z80/gen.c:
index cf5a83d4f7d1ec66a522cb456f06b6a85c0f6447..6d43c9b2439c503ca1d660a50ee2256ddffc6695 100644 (file)
@@ -259,17 +259,16 @@ replace restart {
        ld      b, %2 (%3)
 } if notVolatile(%1), notUsed(%1)
 
-// Bug #2728445
-//replace restart {
-//     ld      %1,a
-//     ld      %2,%3
-//     ld      %4,%1
-//} by {
-//     ; peephole 0t loaded %4 from a instead of going through %1.
-//     ld      %1,a
-//     ld      %2,%3
-//     ld      %4,a
-//} if notVolatile(%1), operandsNotRelated(%1 %3), operandsNotRelated(%1 %2)
+replace restart {
+       ld      %1,a
+       ld      %2,%3
+       ld      %4,%1
+} by {
+       ; peephole 0t loaded %4 from a instead of going through %1.
+       ld      %1,a
+       ld      %2,%3
+       ld      %4,a
+} if notVolatile(%1), operandsNotRelated(%1 %3), operandsNotRelated(%1 %2)
 
 replace restart {
        ld      %1,a