From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EA5C33858D32; Tue, 5 Sep 2023 21:02:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA5C33858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693947720; bh=co3vnnXKBuNq7k6hEQ/U3/4YjfTxlyB7y45EmXksUAY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rU/ZNInbcS7bpYzDw4yHqCEtXYTh81QrYT7DXuYExXtxnsvRiopAM6aSAK9c0wYQa L8NBn8nMw2AxwdB4PXpjMqjsjTDsGwSj4NPiGnE4oNaCDILfWq0mn/ebqJcxJrqyag HI429gdaFR6KRn4uREbYKqhJiZCFs2PpH+Era2iw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111294] [14 Regression] Missed Dead Code Elimination since r14-573-g69f1a8af45d Date: Tue, 05 Sep 2023 21:02:00 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 14.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=3D111294 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > In .optimized we have: > [local count: 118111600]: > # _31 =3D PHI <5(2), 0(3)> > _6 =3D (int) a.9_28; > _8 =3D _31 <=3D 3; > _9 =3D (int) _8; > if (_6 !=3D _9) > goto ; [66.00%] > else > goto ; [34.00%] >=20 > Except nothing optimizes _8 into the phi post pre (note _31 is only used = in > the definition of _8 even). But optimizing that does not help here. Someone who understands jump threading should look into this.=