From 0a20afb57f983cbeb852faf8f7602d8930471387 Mon Sep 17 00:00:00 2001 From: vmakarov Date: Tue, 28 Jul 1998 12:54:04 +0000 Subject: =?UTF-8?q?=EF=BF=BD=20=09*=20cse.c=20(cse=5Finsn):=20Enable=20sub?= =?UTF-8?q?sitution=20inside=20libcall=20only=20for=20REG,=20=09SUBREG,=20?= =?UTF-8?q?MEM.=20=09*=20rtlanal.c=20(replace=5Frtx):=20Prohibit=20replace?= =?UTF-8?q?s=20in=09CONST=5FDOUBLE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21435 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cse.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gcc/cse.c') diff --git a/gcc/cse.c b/gcc/cse.c index 19e809a52dc..5d121870afb 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -6117,8 +6117,9 @@ record_jump_cond (code, mode, op0, op1, reversed_nonequality) Then install the new sources and destinations in the table of available values. - If IN_LIBCALL_BLOCK is nonzero, don't record any equivalence made in - the insn. */ + If LIBCALL_INSN is nonzero, don't record any equivalence made in + the insn. It means that INSN is inside libcall block. In this + case LIBCALL_INSN is the corresponding insn with REG_LIBCALL. */ /* Data on one SET contained in the instruction. */ @@ -6948,7 +6949,10 @@ cse_insn (insn, libcall_insn) /* If we just made a substitution inside a libcall, then we need to make the same substitution in any notes attached to the RETVAL insn. */ - if (libcall_insn) + if (libcall_insn + && (GET_CODE (old_src) == REG + || GET_CODE (old_src) == SUBREG + || GET_CODE (old_src) == MEM)) replace_rtx (REG_NOTES (libcall_insn), old_src, canon_reg (SET_SRC (sets[i].rtl), insn)); -- cgit v1.2.1