From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F1F438582BE; Tue, 10 Jan 2023 15:54:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F1F438582BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673366040; bh=NO9ZxDNtUcjegWr7gqULBMZfqENjcSTCTyCPWhcnh5M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pCp1GW3YwXvyFaPBA9Md+DMm3iXoZfe9aObD2SmWXAAIkE6q1uX9ESCfQxJp11GCe oxztRFPW5gHHLVI3TzwTPLIV86TGKOCH1uXCfMZZqWBz1R/WCvEP5KYCA/I8t1AhuX xrM/bmwHbVpbgd+PUbEDHsrHWdYYydcY8PEp776Y= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106293] [13 Regression] 456.hmmer at -Ofast -march=native regressed by 19% on zen2 and zen3 in July 2022 Date: Tue, 10 Jan 2023 15:53:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 13.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=3D106293 --- Comment #8 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:4e0b504f26f78ff02e80ad98ebbf8ded3aa6ffa1 commit r13-5092-g4e0b504f26f78ff02e80ad98ebbf8ded3aa6ffa1 Author: Richard Biener Date: Tue Jan 10 13:48:51 2023 +0100 tree-optimization/106293 - missed DSE with virtual LC PHI Degenerate virtual PHIs can break DSEs fragile heuristic as to what defs it can handle for further processing. The following enhances it to look through degenerate PHIs by means of a worklist, processing the degenerate PHI defs uses to the defs array. The rewrite of virtuals into loop-closed SSA caused this to issue appear more often. The patch itself is mostly re-indenting the new loop body. PR tree-optimization/106293 * tree-ssa-dse.cc (dse_classify_store): Use a worklist to process degenerate PHI defs. * gcc.dg/tree-ssa/ssa-dse-46.c: New testcase.=