This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[15/nn] Use more specific hash functions in rtlhash.c
- From: Richard Sandiford <richard dot sandiford at linaro dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Oct 2017 12:26:18 +0100
- Subject: [15/nn] Use more specific hash functions in rtlhash.c
- Authentication-results: sourceware.org; auth=none
- References: <87wp3mxgir.fsf@linaro.org>
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'.
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':