Commit 8c4dcf35 by Richard Sandiford Committed by Richard Sandiford

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
parent 6645d841
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
Alan Hayward <alan.hayward@arm.com> Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@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 * alias.c (find_base_value, find_base_term): Only process integer
truncations. Check the precision rather than the size. truncations. Check the precision rather than the size.
...@@ -77,11 +77,11 @@ add_rtx (const_rtx x, hash &hstate) ...@@ -77,11 +77,11 @@ add_rtx (const_rtx x, hash &hstate)
switch (fmt[i]) switch (fmt[i])
{ {
case 'w': case 'w':
hstate.add_object (XWINT (x, i)); hstate.add_hwi (XWINT (x, i));
break; break;
case 'n': case 'n':
case 'i': case 'i':
hstate.add_object (XINT (x, i)); hstate.add_int (XINT (x, i));
break; break;
case 'V': case 'V':
case 'E': case 'E':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment