(distribute_notes, REG_DEAD case): When check to see
authorJim Wilson <wilson@gcc.gnu.org>
Fri, 8 Jul 1994 20:55:33 +0000 (13:55 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 8 Jul 1994 20:55:33 +0000 (13:55 -0700)
if insn uses register, also call find_regno_fusage.

From-SVN: r7683

gcc/combine.c

index 991db28cd0cf9590c069bd48e66215f66be15678..81f55e9a28a429019c68d43d7fec18b55d4c1b0f 100644 (file)
@@ -10573,7 +10573,8 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
                  int i;
 
                  for (i = regno; i < endregno; i++)
-                   if (! refers_to_regno_p (i, i + 1, PATTERN (place), 0))
+                   if (! refers_to_regno_p (i, i + 1, PATTERN (place), 0)
+                       && ! find_regno_fusage (place, USE, i))
                      {
                        rtx piece = gen_rtx (REG, reg_raw_mode[i], i);
                        rtx p;