[PATCH] Fix get_last_value_validate (PR rtl-optimization/41511)

Adam Nemet anemet@caviumnetworks.com
Sun Oct 4 04:52:00 GMT 2009


Eric Botcazou <ebotcazou@adacore.com> writes:
> 	* combine.c (record_value_for_reg): Pass explicity value as argument
> 	to get_last_value_validate.

This confused me at first because there is an argument called "value"
and you pass label_tick explicitly not "value":

> @@ -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);

Adam



More information about the Gcc-patches mailing list