Commit b81fd0f4 by Richard Stallman

(basic_induction_var): Inside PLUS, when looking for promoted

var, make sure it's a REG.

From-SVN: r2210
parent 8c153768
......@@ -4693,7 +4693,8 @@ basic_induction_var (x, dest_reg, p, inc_val, mult_val)
arg = XEXP (x, 1);
else if (XEXP (x, 1) == dest_reg
|| (GET_CODE (XEXP (x, 1)) == SUBREG
&& SUBREG_PROMOTED_VAR_P (XEXP (x, 1))))
&& SUBREG_PROMOTED_VAR_P (XEXP (x, 1))
&& SUBREG_REG (XEXP (x, 1)) == dest_reg))
arg = XEXP (x, 0);
else
return 0;
......
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