(distribute_notes, case REG_DEAD): If a call uses a
authorRichard Earnshaw <erich@gnu.org>
Sat, 25 Jun 1994 10:04:06 +0000 (10:04 +0000)
committerRichard Earnshaw <erich@gnu.org>
Sat, 25 Jun 1994 10:04:06 +0000 (10:04 +0000)
hard reg, then this is where it dies.

From-SVN: r7569

gcc/combine.c

index ff902e4c9722a35826c17dc1ec72f96ff718d6b7..b32f3fed35f6abe93cbdb27b9c553d444a6d8074 100644 (file)
@@ -10520,7 +10520,9 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
                        break;
                      }
                  }
-               else if (reg_referenced_p (XEXP (note, 0), PATTERN (tem)))
+               else if (reg_referenced_p (XEXP (note, 0), PATTERN (tem))
+                        || (GET_CODE (tem) == CALL_INSN
+                            && find_reg_fusage (tem, USE, XEXP (note, 0))))
                  {
                    place = tem;
                    break;