From edbcc676ee21a4236d23a1669d35d6b9a84decb9 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 11 Jan 2001 18:05:38 +0000 Subject: [PATCH] Disable a minor optimization in cases where it would lose a REG_LABEL note. From-SVN: r38914 --- gcc/ChangeLog | 3 +++ gcc/loop.c | 1 + 2 files changed, 4 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9848e5782fc5..2575e7d1dae7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-01-11 Bernd Schmidt + * loop.c (scan_loop): Disable copy propagation if we find a REG_LABEL + note. + Revert this patch: 2000-12-18 David Edelsohn * rs6000.c (and64_operand): Use logical_u_operand. diff --git a/gcc/loop.c b/gcc/loop.c index d7242ed04eb2..a231058ca137 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -919,6 +919,7 @@ scan_loop (loop_start, end, loop_cont, unroll_p, bct_p) && VARRAY_INT (set_in_loop, regno) == 1 && ! side_effects_p (SET_SRC (set)) && ! find_reg_note (p, REG_RETVAL, NULL_RTX) + && ! find_reg_note (p, REG_LABEL, NULL_RTX) && (! SMALL_REGISTER_CLASSES || (! (GET_CODE (SET_SRC (set)) == REG && REGNO (SET_SRC (set)) < FIRST_PSEUDO_REGISTER))) -- 2.47.2