Fix hashing of REG/MEM values.

From-SVN: r40499
This commit is contained in:
Bernd Schmidt 2001-03-15 12:59:26 +00:00 committed by Bernd Schmidt
parent e4027dab42
commit a4f4333ade
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2001-03-15 Bernd Schmidt <bernds@redhat.com>
* cselib.c (hash_rtx): For REG and MEM, just use value of expression
without adding in rtx code and mode.
* config/ia64/ia64.c (maybe_rotate): New function, broken out of
ia64_sched_reorder.
(ia64_sched_reorder): Call maybe_rotate; also rotate after

View File

@ -579,8 +579,7 @@ hash_rtx (x, mode, create)
if (! e)
return 0;
hash += e->value;
return hash ? hash : (unsigned int) MEM;
return e->value;
case CONST_INT:
hash += ((unsigned) CONST_INT << 7) + (unsigned) mode + INTVAL (x);