Use more specific hash functions in rtlhash.c
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 1 Nov 2017 13:35:22 +0000 (13:35 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 1 Nov 2017 13:35:22 +0000 (13:35 +0000)
Avoid using add_object when we have more specific routines available.

2017-11-01  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'.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r254307

gcc/ChangeLog
gcc/rtlhash.c

index 209219c..2d390a0 100644 (file)
@@ -2,6 +2,12 @@
            Alan Hayward  <alan.hayward@arm.com>
            David Sherwood  <david.sherwood@arm.com>
 
+       * rtlhash.c (add_rtx): Use add_hwi for 'w' and add_int for 'i'.
+
+2017-11-01  Richard Sandiford  <richard.sandiford@linaro.org>
+           Alan Hayward  <alan.hayward@arm.com>
+           David Sherwood  <david.sherwood@arm.com>
+
        * alias.c (find_base_value, find_base_term): Only process integer
        truncations.  Check the precision rather than the size.
 
index 680812e..a7cfc53 100644 (file)
@@ -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':