Commit 59f25cf9 by Richard Kenner

(find_reloads): Don't try to call force_const_mem on a HIGH.

From-SVN: r7750
parent 90bf8081
...@@ -2954,6 +2954,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -2954,6 +2954,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
precisely the same as in the code below that calls precisely the same as in the code below that calls
force_const_mem. */ force_const_mem. */
if (CONSTANT_P (operand) if (CONSTANT_P (operand)
/* force_const_mem does not accept HIGH. */
&& GET_CODE (operand) != HIGH
&& (PREFERRED_RELOAD_CLASS (operand, && (PREFERRED_RELOAD_CLASS (operand,
(enum reg_class) this_alternative[i]) (enum reg_class) this_alternative[i])
== NO_REGS) == NO_REGS)
...@@ -3294,6 +3296,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -3294,6 +3296,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
for (i = 0; i < noperands; i++) for (i = 0; i < noperands; i++)
if (! goal_alternative_win[i] if (! goal_alternative_win[i]
&& CONSTANT_P (recog_operand[i]) && CONSTANT_P (recog_operand[i])
/* force_const_mem does not accept HIGH. */
&& GET_CODE (recog_operand[i]) != HIGH
&& (PREFERRED_RELOAD_CLASS (recog_operand[i], && (PREFERRED_RELOAD_CLASS (recog_operand[i],
(enum reg_class) goal_alternative[i]) (enum reg_class) goal_alternative[i])
== NO_REGS) == NO_REGS)
......
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