From: spth Date: Fri, 3 Apr 2009 16:18:37 +0000 (+0000) Subject: Reenabled peephole 0t X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=adf1d62df743fc2d3bce2a9979693beb6f0d50a3;hp=d0d1319aba1a3ae007786c03c49f0ca82b480365;p=fw%2Fsdcc Reenabled peephole 0t git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5425 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 4b529afb..7faafa69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-03 Philipp Klaus Krause + + * src/z80/peeph-z80.def: + Reenabled peephole 0t. + 2009-04-03 Philipp Klaus Krause * src/z80/gen.c: diff --git a/src/z80/peeph-z80.def b/src/z80/peeph-z80.def index cf5a83d4..6d43c9b2 100644 --- a/src/z80/peeph-z80.def +++ b/src/z80/peeph-z80.def @@ -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