aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-11-01 13:35:22 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-11-01 13:35:22 +0000
commit8c4dcf35d54e111156d78801111633feb11de87a (patch)
treee3dcf1ecacc34f8105f6d7096551792d99ce9e19
parent6645d84173dfc7a7bfa389db1e2359cd78fe7182 (diff)
downloadgcc-8c4dcf35d54e111156d78801111633feb11de87a.zip
gcc-8c4dcf35d54e111156d78801111633feb11de87a.tar.gz
gcc-8c4dcf35d54e111156d78801111633feb11de87a.tar.bz2
Use more specific hash functions in rtlhash.c
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/rtlhash.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 209219c..2d390a0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/rtlhash.c b/gcc/rtlhash.c
index 680812e..a7cfc53 100644
--- a/gcc/rtlhash.c
+++ b/gcc/rtlhash.c
@@ -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':