From 6d101824da66bef99004fe3e552bae5a57011e30 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 10 Dec 1996 20:20:59 -0500 Subject: [PATCH] (combinable_i3pat): Bring back to sync with can_combine_p. From-SVN: r13274 --- gcc/combine.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/combine.c b/gcc/combine.c index 47caa0751a6..683765f407c 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -1143,13 +1143,17 @@ combinable_i3pat (i3, loc, i2dest, i1dest, i1_not_in_src, pi3dest_killed) || (i1dest && reg_overlap_mentioned_p (i1dest, inner_dest)))) /* This is the same test done in can_combine_p except that we allow a hard register with SMALL_REGISTER_CLASSES if SRC is a - CALL operation. */ + CALL operation. + Moreover, we can't test all_adjacent; we don't have to, since + this instruction will stay in place, thus we are not considering + to increase the lifetime of INNER_DEST. */ || (GET_CODE (inner_dest) == REG && REGNO (inner_dest) < FIRST_PSEUDO_REGISTER && (! HARD_REGNO_MODE_OK (REGNO (inner_dest), GET_MODE (inner_dest)) #ifdef SMALL_REGISTER_CLASSES - || (GET_CODE (src) != CALL && ! REG_USERVAR_P (inner_dest)) + || (GET_CODE (src) != CALL && ! REG_USERVAR_P (inner_dest) + && FUNCTION_VALUE_REGNO_P (REGNO (inner_dest))) #endif )) || (i1_not_in_src && reg_overlap_mentioned_p (i1dest, src))) -- 2.30.2