summaryrefslogtreecommitdiff
path: root/gcc/postreload.c
diff options
context:
space:
mode:
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-20 09:59:34 +0000
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-20 09:59:34 +0000
commitf222bc3bf80f202e53e83e88c0b4d4d776dabb54 (patch)
tree03fa69a8b0313afedcb97e7ad2b8a70e0bf95f3e /gcc/postreload.c
parent59d526f9c5354be1a9ac840aafb76473a7f31b64 (diff)
downloadgcc-f222bc3bf80f202e53e83e88c0b4d4d776dabb54.tar.gz
* postreload.c (reload_cse_move2add): Allow any condjump, but check
that the implicit set isn't clobbered in the jump insn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86308 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/postreload.c')
-rw-r--r--gcc/postreload.c3
1 files changed, 2 insertions, 1 deletions
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