diff options
author | Toshiyasu Morita <toshi.morita@sega.com> | 2000-01-12 10:30:33 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-01-12 03:30:33 -0700 |
commit | b746d31a1135d7ffca251f720931a3969fbb1aed (patch) | |
tree | f6f2cb178f6104981f261466da67437e26054d0e /gcc/reorg.c | |
parent | 25e3c7bf27d5fff957b28f358324e4ad8a1dce3e (diff) | |
download | gcc-b746d31a1135d7ffca251f720931a3969fbb1aed.zip gcc-b746d31a1135d7ffca251f720931a3969fbb1aed.tar.gz gcc-b746d31a1135d7ffca251f720931a3969fbb1aed.tar.bz2 |
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
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r-- | gcc/reorg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c index de4c6ac..05fc76d 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); } } |