Jiahao Xu <[email protected]> writes:

> Follow up to r17-1827-g92d206fab98, which changed the reassociation_width
> target hook to use tree_code instead of unsigned int. This patch updates
> loongarch_sched_reassociation_width to use the correct tree_code parameter
> type to match the target hook definition.
>
> gcc/ChangeLog:
>
>       * config/loongarch/loongarch.cc (loongarch_sched_reassociation_width):
>       Get a tree_code instead of unsigned int.
> ---
>  gcc/config/loongarch/loongarch.cc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/config/loongarch/loongarch.cc 
> b/gcc/config/loongarch/loongarch.cc
> index 1192c85e0f1..3f0666f360c 100644
> --- a/gcc/config/loongarch/loongarch.cc
> +++ b/gcc/config/loongarch/loongarch.cc
> @@ -10038,7 +10038,7 @@ loongarch_cpu_sched_reassociation_width (struct 
> loongarch_target *target,
>  /* Implement TARGET_SCHED_REASSOCIATION_WIDTH.  */
>  
>  static int
> -loongarch_sched_reassociation_width (unsigned int opc, machine_mode mode)
> +loongarch_sched_reassociation_width (tree_code opc, machine_mode mode)
>  {
>    return loongarch_cpu_sched_reassociation_width (&la_target, opc, mode);
>  }


Pushed as r17-1911.

Thanks.

Reply via email to