From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1285) id C83FF3858D39; Tue, 14 Mar 2023 10:43:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C83FF3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678790585; bh=QkCSaa84bN5db49VyF5BP064UXYr9ilg+wQXR77i87E=; h=From:To:Subject:Date:From; b=bGiShZ12vu6WwALV7QgZrHGnQCm66jmQeQclo2l2FyBFoRMpS0MEPHJi5/CyGb62+ z+8CO1NAcsX+n1B6PV6A3SNwaPhJ7cMfMNKLfPB/MotZR8sTMvoLyi79ks6lWdiKu1 X2OHEpX2ZO0EuUrAZsbexnwKPIeG0KmuTlKu83Fk= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Eric Botcazou To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6659] Revert latest change to emit_group_store X-Act-Checkin: gcc X-Git-Author: Eric Botcazou X-Git-Refname: refs/heads/master X-Git-Oldrev: 4d771291f70dab571e7c18f9f5f8af4f27737244 X-Git-Newrev: 8b6c38ef6a7a8cc1f7cc2ff86a686e07ceab1641 Message-Id: <20230314104305.C83FF3858D39@sourceware.org> Date: Tue, 14 Mar 2023 10:43:05 +0000 (GMT) List-Id: https://gcc.gnu.org/g:8b6c38ef6a7a8cc1f7cc2ff86a686e07ceab1641 commit r13-6659-g8b6c38ef6a7a8cc1f7cc2ff86a686e07ceab1641 Author: Eric Botcazou Date: Tue Mar 14 10:39:11 2023 +0100 Revert latest change to emit_group_store This pessimizes on targets with insv instructions. gcc/ PR rtl-optimization/107762 * expr.cc (emit_group_store): Revert latest change. Diff: --- gcc/expr.cc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/gcc/expr.cc b/gcc/expr.cc index 78d35297e75..f8f5cc5a6ca 100644 --- a/gcc/expr.cc +++ b/gcc/expr.cc @@ -2902,16 +2902,14 @@ emit_group_store (rtx orig_dst, rtx src, tree type ATTRIBUTE_UNUSED, dst = gen_reg_rtx (outer); /* Make life a bit easier for combine: if the first element of the - vector is the word (or larger) low part of the destination mode, - use a paradoxical subreg to initialize the destination. */ + vector is the low part of the destination mode, use a paradoxical + subreg to initialize the destination. */ if (start < finish) { inner = GET_MODE (tmps[start]); bytepos = subreg_lowpart_offset (inner, outer); - if (known_ge (GET_MODE_BITSIZE (inner), BITS_PER_WORD) - && known_eq (rtx_to_poly_int64 (XEXP (XVECEXP (src, 0, - start), 1)), - bytepos)) + if (known_eq (rtx_to_poly_int64 (XEXP (XVECEXP (src, 0, start), 1)), + bytepos)) { temp = simplify_gen_subreg (outer, tmps[start], inner, 0); if (temp) @@ -2929,10 +2927,9 @@ emit_group_store (rtx orig_dst, rtx src, tree type ATTRIBUTE_UNUSED, { inner = GET_MODE (tmps[finish - 1]); bytepos = subreg_lowpart_offset (inner, outer); - if (known_ge (GET_MODE_BITSIZE (inner), BITS_PER_WORD) - && known_eq (rtx_to_poly_int64 (XEXP (XVECEXP (src, 0, - finish - 1), 1)), - bytepos)) + if (known_eq (rtx_to_poly_int64 (XEXP (XVECEXP (src, 0, + finish - 1), 1)), + bytepos)) { temp = simplify_gen_subreg (outer, tmps[finish - 1], inner, 0); if (temp)