From: Richard Earnshaw Date: Fri, 20 Aug 2004 09:59:34 +0000 (+0000) Subject: postreload.c (reload_cse_move2add): Allow any condjump... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4cdb8e1d07a732cbe0ed4ff923cefd427cb5285;p=gcc.git postreload.c (reload_cse_move2add): Allow any condjump... * postreload.c (reload_cse_move2add): Allow any condjump, but check that the implicit set isn't clobbered in the jump insn. From-SVN: r86308 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b4668eac3a..cbdecb6bcc9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-20 Richard Earnshaw + + * postreload.c (reload_cse_move2add): Allow any condjump, but check + that the implicit set isn't clobbered in the jump insn. + 2004-08-19 Mark Mitchell * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove. diff --git a/gcc/postreload.c b/gcc/postreload.c index 3b15118f329..20d4a4f543e 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -1375,13 +1375,14 @@ reload_cse_move2add (rtx first) /* If INSN is a conditional branch, we try to extract an implicit set out of it. */ - if (any_condjump_p (insn) && onlyjump_p (insn)) + if (any_condjump_p (insn)) { rtx cnd = fis_get_condition (insn); if (cnd != NULL_RTX && GET_CODE (cnd) == NE && REG_P (XEXP (cnd, 0)) + && !reg_set_p (XEXP (cnd, 0), insn) /* The following two checks, which are also in move2add_note_store, are intended to reduce the number of calls to gen_rtx_SET to avoid memory