From: Richard Stallman Date: Sat, 12 Jun 1993 23:42:59 +0000 (+0000) Subject: (record_jump_cond): Look up op1 again after inserting op0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d5ea90929d24044ac05c891fcc8f7859e52daae;p=gcc.git (record_jump_cond): Look up op1 again after inserting op0. From-SVN: r4669 --- diff --git a/gcc/cse.c b/gcc/cse.c index 8ae97142760..0e1fe8431c1 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -5619,6 +5619,9 @@ record_jump_cond (code, mode, op0, op1, reversed_nonequality) qty_comparison_code[reg_qty[REGNO (op0)]] = code; if (GET_CODE (op1) == REG) { + /* Look it up again--in case op0 and op1 are the same. */ + op1_elt = lookup (op1, op1_hash_code, mode); + /* Put OP1 in the hash table so it gets a new quantity number. */ if (op1_elt == 0) {