From: Bernd Schmidt Date: Thu, 11 Jan 2001 18:05:38 +0000 (+0000) Subject: Disable a minor optimization in cases where it would lose a REG_LABEL note. X-Git-Tag: prereleases/gcc-2.95.3-test2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edbcc676ee21a4236d23a1669d35d6b9a84decb9;p=thirdparty%2Fgcc.git Disable a minor optimization in cases where it would lose a REG_LABEL note. From-SVN: r38914 --- 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)))