projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e87e69
)
(record_jump_cond): Rehash OP1 if OP0's insert_regs returns nonzero.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 6 Oct 1993 10:56:50 +0000
(06:56 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 6 Oct 1993 10:56:50 +0000
(06:56 -0400)
From-SVN: r5631
gcc/cse.c
patch
|
blob
|
history
diff --git
a/gcc/cse.c
b/gcc/cse.c
index beb5a769166c2ac242d168c8c5562c710dc0cc1e..4fbcb287b01604a5a9b09edc4c72932af79cd427 100644
(file)
--- a/
gcc/cse.c
+++ b/
gcc/cse.c
@@
-5621,6
+5621,12
@@
record_jump_cond (code, mode, op0, op1, reversed_nonequality)
{
rehash_using_reg (op0);
op0_hash_code = HASH (op0, mode);
+
+ /* If OP0 is contained in OP1, this changes its hash code
+ as well. Faster to rehash than to check, except
+ for the simple case of a constant. */
+ if (! CONSTANT_P (op1))
+ op1_hash_code = HASH (op1,mode);
}
op0_elt = insert (op0, NULL_PTR, op0_hash_code, mode);