Commit a4f4333a by Bernd Schmidt Committed by Bernd Schmidt

Fix hashing of REG/MEM values.

From-SVN: r40499
parent e4027dab
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
......
......@@ -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);
......
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