X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fpeeph-z80.def;h=cf5a83d4f7d1ec66a522cb456f06b6a85c0f6447;hb=d0d1319aba1a3ae007786c03c49f0ca82b480365;hp=6d43c9b2439c503ca1d660a50ee2256ddffc6695;hpb=ec1a2977db2d0e4b07f61c9c6a9d0b26f63ca698;p=fw%2Fsdcc diff --git a/src/z80/peeph-z80.def b/src/z80/peeph-z80.def index 6d43c9b2..cf5a83d4 100644 --- a/src/z80/peeph-z80.def +++ b/src/z80/peeph-z80.def @@ -259,16 +259,17 @@ replace restart { ld b, %2 (%3) } if notVolatile(%1), notUsed(%1) -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) +// 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