From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 82757385841D; Mon, 26 Jun 2023 16:30:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82757385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687797010; bh=fx2teOjhG0GCOTVwwjNhr21owUzb9jaL9fFA7TUnCnE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pfwJ2/7GyTVjV9WM2NN24WjFjL1V+LcLq0Yxr35ROGVpopRzrh/W4mYk8oKKy8zYp 7xtKY6ZLhNdvwtnHcw7y4JbTUaxJjShrUxddjf/d3Br21YL2KiFW3FirirBOqtn35G oHTDW5nungkk67PAyQyJl1BQw2ZZfB6UHnPdHzpo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109849] suboptimal code for vector walking loop Date: Mon, 26 Jun 2023 16:30:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end 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: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D109849 --- Comment #17 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:c2ebccc97190a978a44e341516b488f02a78c598 commit r14-2101-gc2ebccc97190a978a44e341516b488f02a78c598 Author: Jan Hubicka Date: Mon Jun 26 18:29:39 2023 +0200 Fix profile of forwarders produced by cd-dce compiling the testcase from PR109849 (which uses std:vector based stack= to drive a loop) with profile feedbakc leads to profile mismatches introdu= ced by tree-ssa-dce. This is the new code to produce unified forwarder blocks= for PHIs. I am not including the testcase itself since checking it for Invalid sum is probably going to be too fragile and this should show in our LNT testers. The patch however fixes the mismatch. Bootstrapped/regtested x86_64-linux and plan to commit it shortly. gcc/ChangeLog: PR tree-optimization/109849 * tree-ssa-dce.cc (make_forwarders_with_degenerate_phis): Fix profile count of newly constructed forwarder block.=