Commit e50ab9ee by Michael Meissner

Do not go beyond end of array

From-SVN: r14384
parent 26ef0fc8
...@@ -3961,6 +3961,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, ...@@ -3961,6 +3961,7 @@ strength_reduce (scan_start, end, loop_top, insn_count,
other_giv = tv; other_giv = tv;
} }
if (! tv && other_giv if (! tv && other_giv
&& REGNO (other_giv->dest_reg) <= max_reg_before_loop
&& (REGNO_LAST_UID (REGNO (other_giv->dest_reg)) && (REGNO_LAST_UID (REGNO (other_giv->dest_reg))
== INSN_UID (v->insn)) == INSN_UID (v->insn))
&& INSN_LUID (v->insn) < INSN_LUID (bl->biv->insn)) && INSN_LUID (v->insn) < INSN_LUID (bl->biv->insn))
......
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