Commit 12d7e99c by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

reorg.c (fill_slots_from_thread): Check side_effects_p when trying the "opposite…

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
parent 50b99cc8
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> Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
* sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI. * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
......
...@@ -2808,7 +2808,8 @@ fill_slots_from_thread (insn, condition, thread, opposite_thread, likely, ...@@ -2808,7 +2808,8 @@ fill_slots_from_thread (insn, condition, thread, opposite_thread, likely,
dest = SET_DEST (pat), src = SET_SRC (pat); dest = SET_DEST (pat), src = SET_SRC (pat);
if ((GET_CODE (src) == PLUS || GET_CODE (src) == MINUS) if ((GET_CODE (src) == PLUS || GET_CODE (src) == MINUS)
&& rtx_equal_p (XEXP (src, 0), dest) && 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 other = XEXP (src, 1);
rtx new_arith; rtx new_arith;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment