diff mbox series

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

Message ID 874lqqw1et.fsf@linaro.org
State New
Headers show
Series [15/nn] Use more specific hash functions in rtlhash.c | expand

Commit Message

Richard Sandiford Oct. 23, 2017, 11:26 a.m. UTC
Avoid using add_object when we have more specific routines available.


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'.

Comments

Richard Biener Oct. 26, 2017, 12:07 p.m. UTC | #1
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':
diff mbox series

Patch

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':