From b746d31a1135d7ffca251f720931a3969fbb1aed Mon Sep 17 00:00:00 2001 From: Toshiyasu Morita Date: Wed, 12 Jan 2000 10:30:33 +0000 Subject: [PATCH] reorg.c (fill_slots_from_thread): Check modified_in_p before replacing. * reorg.c (fill_slots_from_thread): Check modified_in_p before replacing. From-SVN: r31349 --- gcc/ChangeLog | 5 +++++ gcc/reorg.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 324ffdde18a..0edd42dbd65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com) + + * reorg.c (fill_slots_from_thread): Check modified_in_p + before replacing. + Wed Jan 12 03:20:31 2000 John Marshall * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format diff --git a/gcc/reorg.c b/gcc/reorg.c index de4c6ac6f73..05fc76d2dd4 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -2748,7 +2748,8 @@ fill_slots_from_thread (insn, condition, thread, opposite_thread, likely, && GET_CODE (PATTERN (next)) != USE && ! reg_set_p (SET_DEST (pat), next) && ! reg_set_p (SET_SRC (pat), next) - && reg_referenced_p (SET_DEST (pat), PATTERN (next))) + && reg_referenced_p (SET_DEST (pat), PATTERN (next)) + && ! modified_in_p (SET_DEST (pat), next)) validate_replace_rtx (SET_DEST (pat), SET_SRC (pat), next); } }