combine.c (try_combine): Disregard USEs when updating LOG_LINKS of subsequent insns.
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 1 Dec 2000 01:08:40 +0000 (01:08 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 1 Dec 2000 01:08:40 +0000 (01:08 +0000)
* combine.c (try_combine): Disregard USEs when updating LOG_LINKS
of subsequent insns.

From-SVN: r37905

gcc/ChangeLog
gcc/combine.c

index 44f8a1f57912921e2c7d977831efa16b28ed937b..93b0f9de1962908f94adba31b6cb05062776d68f 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-30  Alexandre Oliva  <aoliva@redhat.com>
+
+       * combine.c (try_combine): Disregard USEs when updating LOG_LINKS
+       of subsequent insns.
+
 2000-11-30  Richard Henderson  <rth@redhat.com>
 
        * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
index df773aacdd6e19fa89eb0f048caa6b25f67e2f7c..1946ba2d3a1917d6ac2d0b5dfed76972c615039a 100644 (file)
@@ -2553,7 +2553,8 @@ try_combine (i3, i2, i1, new_direct_jump_p)
     if (i3_subst_into_i2 && GET_CODE (PATTERN (i2)) == PARALLEL)
       {
        for (i = 0; i < XVECLEN (PATTERN (i2), 0); i++)
-         if (GET_CODE (SET_DEST (XVECEXP (PATTERN (i2), 0, i))) == REG
+         if (GET_CODE (XVECEXP (PATTERN (i2), 0, i)) != USE
+             && GET_CODE (SET_DEST (XVECEXP (PATTERN (i2), 0, i))) == REG
              && SET_DEST (XVECEXP (PATTERN (i2), 0, i)) != i2dest
              && ! find_reg_note (i2, REG_UNUSED,
                                  SET_DEST (XVECEXP (PATTERN (i2), 0, i))))