[15/nn] Use more specific hash functions in rtlhash.c

Richard Biener richard.guenther@gmail.com
Thu Oct 26 12:08:00 GMT 2017


On Mon, Oct 23, 2017 at 1:26 PM, Richard Sandiford
<richard.sandiford@linaro.org> wrote:
> Avoid using add_object when we have more specific routines available.

Ok.

>
> 2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
>             Alan Hayward  <alan.hayward@arm.com>
>             David Sherwood  <david.sherwood@arm.com>
>
> gcc/
>         * rtlhash.c (add_rtx): Use add_hwi for 'w' and add_int for 'i'.
>
> Index: gcc/rtlhash.c
> ===================================================================
> --- gcc/rtlhash.c       2017-02-23 19:54:03.000000000 +0000
> +++ gcc/rtlhash.c       2017-10-23 11:47:20.120201389 +0100
> @@ -77,11 +77,11 @@ add_rtx (const_rtx x, hash &hstate)
>      switch (fmt[i])
>        {
>        case 'w':
> -       hstate.add_object (XWINT (x, i));
> +       hstate.add_hwi (XWINT (x, i));
>         break;
>        case 'n':
>        case 'i':
> -       hstate.add_object (XINT (x, i));
> +       hstate.add_int (XINT (x, i));
>         break;
>        case 'V':
>        case 'E':



More information about the Gcc-patches mailing list