* reorg.c (fill_slots_from_thread): Check modified_in_p
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jan 2000 10:30:33 +0000 (10:30 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jan 2000 10:30:33 +0000 (10:30 +0000)
        before replacing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31349 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reorg.c

index 324ffdd..0edd42d 100644 (file)
@@ -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 <john_w_marshall@palm.com>
 
        * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
index de4c6ac..05fc76d 100644 (file)
@@ -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);
        }
     }