diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2000-04-12 20:46:22 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2000-04-12 20:46:22 +0000 |
commit | 12d7e99cdc4ca3d9bdf721662e811d7e326340b9 (patch) | |
tree | bc48b9ecca681a64c34f3b4beb68bbcf82162b4c /gcc | |
parent | 50b99cc8fe032c1631c99f9f1ccda990d717d63b (diff) | |
download | gcc-12d7e99cdc4ca3d9bdf721662e811d7e326340b9.zip gcc-12d7e99cdc4ca3d9bdf721662e811d7e326340b9.tar.gz gcc-12d7e99cdc4ca3d9bdf721662e811d7e326340b9.tar.bz2 |
reorg.c (fill_slots_from_thread): Check side_effects_p when trying the "opposite arithmetic" approach.
* reorg.c (fill_slots_from_thread): Check side_effects_p when
trying the "opposite arithmetic" approach.
From-SVN: r33125
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/reorg.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 43332c7..d519be5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com> + + * reorg.c (fill_slots_from_thread): Check side_effects_p when + trying the "opposite arithmetic" approach. + Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk> * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI. diff --git a/gcc/reorg.c b/gcc/reorg.c index 3997c74..379def7 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -2808,7 +2808,8 @@ fill_slots_from_thread (insn, condition, thread, opposite_thread, likely, dest = SET_DEST (pat), src = SET_SRC (pat); if ((GET_CODE (src) == PLUS || GET_CODE (src) == MINUS) && rtx_equal_p (XEXP (src, 0), dest) - && ! reg_overlap_mentioned_p (dest, XEXP (src, 1))) + && ! reg_overlap_mentioned_p (dest, XEXP (src, 1)) + && ! side_effects_p (pat)) { rtx other = XEXP (src, 1); rtx new_arith; |