Commit 7ca919b7 by Richard Kenner

(try_combine): When substituting in output of I2, ensure dest isn't

clobbered in I2.

From-SVN: r11773
parent c2d12c8b
...@@ -1307,7 +1307,8 @@ try_combine (i3, i2, i1) ...@@ -1307,7 +1307,8 @@ try_combine (i3, i2, i1)
The problem can also happen if the dest of I3 is a memory ref, The problem can also happen if the dest of I3 is a memory ref,
if another dest in I2 is an indirect memory ref. */ if another dest in I2 is an indirect memory ref. */
for (i = 0; i < XVECLEN (p2, 0); i++) for (i = 0; i < XVECLEN (p2, 0); i++)
if (GET_CODE (XVECEXP (p2, 0, i)) == SET if ((GET_CODE (XVECEXP (p2, 0, i)) == SET
|| GET_CODE (XVECEXP (p2, 0, i)) == CLOBBER)
&& reg_overlap_mentioned_p (SET_DEST (PATTERN (i3)), && reg_overlap_mentioned_p (SET_DEST (PATTERN (i3)),
SET_DEST (XVECEXP (p2, 0, i)))) SET_DEST (XVECEXP (p2, 0, i))))
break; break;
......
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