This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix get_last_value_validate (PR rtl-optimization/41511)
On Sat, Oct 03, 2009 at 12:16:56PM +0200, Eric Botcazou wrote:
> --- combine.c (revision 152360)
> +++ combine.c (working copy)
> @@ -11752,12 +11752,10 @@ record_value_for_reg (rtx reg, rtx insn,
> case, we must replace it with (clobber (const_int 0)) to prevent
> infinite loops. */
> rsp = VEC_index (reg_stat_type, reg_stat, regno);
> - if (value && ! get_last_value_validate (&value, insn,
> - rsp->last_set_label, 0))
> + if (value && !get_last_value_validate (&value, insn, label_tick, 0))
> {
> value = copy_rtx (value);
> - if (! get_last_value_validate (&value, insn,
> - rsp->last_set_label, 1))
> + if (!get_last_value_validate (&value, insn, label_tick, 1))
> value = 0;
> }
>
Yeah, when looking at it I've spent a couple of seconds trying to
prove rsp->last_set_label is always label_tick here, this makes it
more obvious ;)
Jakub