Fix hashing of REG/MEM values.
From-SVN: r40499
This commit is contained in:
parent
e4027dab42
commit
a4f4333ade
@ -1,5 +1,8 @@
|
|||||||
2001-03-15 Bernd Schmidt <bernds@redhat.com>
|
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
|
* config/ia64/ia64.c (maybe_rotate): New function, broken out of
|
||||||
ia64_sched_reorder.
|
ia64_sched_reorder.
|
||||||
(ia64_sched_reorder): Call maybe_rotate; also rotate after
|
(ia64_sched_reorder): Call maybe_rotate; also rotate after
|
||||||
|
@ -579,8 +579,7 @@ hash_rtx (x, mode, create)
|
|||||||
if (! e)
|
if (! e)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
hash += e->value;
|
return e->value;
|
||||||
return hash ? hash : (unsigned int) MEM;
|
|
||||||
|
|
||||||
case CONST_INT:
|
case CONST_INT:
|
||||||
hash += ((unsigned) CONST_INT << 7) + (unsigned) mode + INTVAL (x);
|
hash += ((unsigned) CONST_INT << 7) + (unsigned) mode + INTVAL (x);
|
||||||
|
Loading…
Reference in New Issue
Block a user