From e488f474083f79233c0d203a54b1b03599b0231f Mon Sep 17 00:00:00 2001 From: frief Date: Fri, 20 Oct 2006 13:43:12 +0000 Subject: [PATCH] * src/mcs51/peeph.def: peephole 238.x added check for notvolatile git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4421 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 3 ++- src/mcs51/peeph.def | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e6d556a..7673c3d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ -2006-10-16 Frieder Ferlemann +2006-10-20 Frieder Ferlemann + * src/mcs51/peeph.def: peephole 238.x added check for notvolatile * support/regression/ports/mcs51/support.c: removed race condition on TI in _putchar allowing to use serial port mode 0 diff --git a/src/mcs51/peeph.def b/src/mcs51/peeph.def index 2dbda216..97492818 100644 --- a/src/mcs51/peeph.def +++ b/src/mcs51/peeph.def @@ -2567,7 +2567,7 @@ replace { mov %7,%15 mov %8,%16 ; Peephole 238.a removed 4 redundant moves -} if operandsNotSame8 %1 %2 %3 %4 %5 %6 %7 %8 +} if operandsNotSame8(%1 %2 %3 %4 %5 %6 %7 %8), notVolatile(%1 %2 %3 %4 %9 %10 %11 %12) // applies to device/lib/log10f.c replace { @@ -2585,7 +2585,7 @@ replace { mov %3,%7 mov %4,%8 ; Peephole 238.b removed 3 redundant moves -} if operandsNotSame7 %1 %2 %3 %4 %5 %6 %7 +} if operandsNotSame7(%1 %2 %3 %4 %5 %6 %7), notVolatile(%1 %2 %3 %5 %6 %7) // applies to f.e. device/lib/time.c replace { @@ -2604,7 +2604,7 @@ replace { mov %3,%7 mov %4,%8 ; Peephole 238.c removed 2 redundant moves -} if operandsNotSame4 %1 %2 %3 %4 +} if operandsNotSame4(%1 %2 %3 %4), notVolatile(%1 %2 %5 %6) // applies to f.e. support/regression/tests/bug-524209.c replace { @@ -2620,7 +2620,7 @@ replace { mov %2,%5 mov %3,%6 ; Peephole 238.d removed 3 redundant moves -} if operandsNotSame6 %1 %2 %3 %4 %5 %6 +} if operandsNotSame6(%1 %2 %3 %4 %5 %6), notVolatile(%1 %2 %3 %4 %5 %6) // applies to f.e. ser_ir.asm replace { -- 2.30.2