From: Richard Sandiford Date: Wed, 1 Nov 2017 13:35:22 +0000 (+0000) Subject: Use more specific hash functions in rtlhash.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c4dcf35d54e111156d78801111633feb11de87a;p=gcc.git Use more specific hash functions in rtlhash.c Avoid using add_object when we have more specific routines available. 2017-11-01 Richard Sandiford Alan Hayward David Sherwood gcc/ * rtlhash.c (add_rtx): Use add_hwi for 'w' and add_int for 'i'. Co-Authored-By: Alan Hayward Co-Authored-By: David Sherwood From-SVN: r254307 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 209219cc8f6..2d390a01e04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-11-01 Richard Sandiford + Alan Hayward + David Sherwood + + * rtlhash.c (add_rtx): Use add_hwi for 'w' and add_int for 'i'. + 2017-11-01 Richard Sandiford Alan Hayward David Sherwood diff --git a/gcc/rtlhash.c b/gcc/rtlhash.c index 680812e74ae..a7cfc5383e2 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':