]> gcc.gnu.org Git - gcc.git/commitdiff
(record_jump_cond): Look up op1 again after inserting op0.
authorRichard Stallman <rms@gnu.org>
Sat, 12 Jun 1993 23:42:59 +0000 (23:42 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 12 Jun 1993 23:42:59 +0000 (23:42 +0000)
From-SVN: r4669

gcc/cse.c

index 8ae97142760576a03a8046fd7f9428bc0fbe306f..0e1fe8431c17c49381ca5c9fca398c216e1aae09 100644 (file)
--- 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)
            {
This page took 0.06511 seconds and 5 git commands to generate.