Commit 9abdca9c by Richard Kenner

(strength_reduce): When replacing DEST_ADDR givs, make sure resulting

insn is valid.

From-SVN: r7529
parent 49501ea4
...@@ -3851,7 +3851,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, ...@@ -3851,7 +3851,7 @@ strength_reduce (scan_start, end, loop_top, insn_count,
if (v->giv_type == DEST_ADDR) if (v->giv_type == DEST_ADDR)
/* Store reduced reg as the address in the memref where we found /* Store reduced reg as the address in the memref where we found
this giv. */ this giv. */
*v->location = v->new_reg; validate_change (v->insn, v->location, v->new_reg, 0);
else if (v->replaceable) else if (v->replaceable)
{ {
reg_map[REGNO (v->dest_reg)] = v->new_reg; reg_map[REGNO (v->dest_reg)] = v->new_reg;
......
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