From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EA36F3857411; Mon, 14 Mar 2022 12:17:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA36F3857411 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104912] [12 Regression] 416.gamess regression after r12-7612-g69619acd8d9b58 Date: Mon, 14 Mar 2022 12:17:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2022 12:17:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104912 --- Comment #3 from Richard Biener --- (In reply to Richard Biener from comment #2) > PR87561 has a testcase and for it we pessimized strided loads & stores "a > bit more" in r9-6581-g7d7d1ce83889ee and r9-6580-g0538ed1d3602ec We're entering this CTOR cost pessimization with a cost of 4 now (down from= 8), aka one sse_op, and multiply that by 3. I think it would be better to add TYPE_VECTOR_SUBPARTS times ->lea cost, though that would not help here obviously. This cost pessimization is a (bad) workaround for the inability to handle PR89754 and PR89755 Since we halved the CTOR cost we'd now need to apply that factor of two ontop of the pessimization for strided loads/stores to recover. Since we only halved the CTOR case but not vec_to_scalar we get away with just doing that for load_vec_info_type.=