From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB33A3882059; Thu, 13 Jun 2024 14:04:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB33A3882059 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718287479; bh=quvlywaMlkM1CQubhjCbBb2J1RHOUZ2J09cdpOgO5so=; h=From:To:Subject:Date:In-Reply-To:References:From; b=R0FMzIW7gqZgzufz/MBsRtbZ2l14sxW6HvnTdT/92Q3HmTSsENf98wQ6nrH/qTtSc R/18OmvWqSwQRrvQiFN0nJYKT/ugm+nlvWY4LAamdOx+hZSAiDv19zJQMPiLTY/A9y Ac+PySfwGRDpPETtvDsHKM1JxAPXLX7PCdDMNZ4U= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115463] [15 regression] 526.blender_r regressed 5% on Zen2 with -Ofast -flto -march=native since r15-1058-gc989e59fc99d99 Date: Thu, 13 Jun 2024 14:04:39 +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: 15.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 15.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115463 --- Comment #2 from GCC Commits --- The master branch has been updated by Hongyu Wang : https://gcc.gnu.org/g:83a765768510d1f329887116757d6818d7846717 commit r15-1293-g83a765768510d1f329887116757d6818d7846717 Author: Hongyu Wang Date: Thu Jun 13 00:18:32 2024 +0800 [APX CCMP] Add targetm.have_ccmp hook [PR115370] In cfgexpand, there is an optimization for branch which tests targetm.gen_ccmp_first =3D=3D NULL. However for target like x86-64, the hook was implemented but it does not indicate that ccmp was enabled. Add a new target hook TARGET_HAVE_CCMP and replace the middle-end check for the existance of gen_ccmp_first to avoid misoptimization. gcc/ChangeLog: PR target/115370 PR target/115463 * target.def (have_ccmp): New target hook. * targhooks.cc (default_have_ccmp): New function. * targhooks.h (default_have_ccmp): New prototype. * doc/tm.texi.in: Add TARGET_HAVE_CCMP. * doc/tm.texi: Regenerate. * cfgexpand.cc (expand_gimple_cond): Call targetm.have_ccmp instead of checking if targetm.gen_ccmp_first exists. * expr.cc (expand_expr_real_gassign): Likewise. * config/i386/i386.cc (ix86_have_ccmp): New target hook to check if APX_CCMP enabled. (TARGET_HAVE_CCMP): Define.=