From 9e5256ce26637e8e626ad4204d26242a04df501c Mon Sep 17 00:00:00 2001 From: hp Date: Wed, 12 Apr 2000 20:46:22 +0000 Subject: * reorg.c (fill_slots_from_thread): Check side_effects_p when trying the "opposite arithmetic" approach. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33125 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/reorg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/reorg.c') diff --git a/gcc/reorg.c b/gcc/reorg.c index 3997c746ed8..379def73cbb 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; -- cgit v1.2.1