(record_jump_cond): Rehash OP1 if OP0's insert_regs returns nonzero.

From-SVN: r5631
This commit is contained in:
Richard Kenner 1993-10-06 06:56:50 -04:00
parent 6e87e69e8f
commit 2bb81c86de
1 changed files with 6 additions and 0 deletions

View File

@ -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);