From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 03F273858D1E; Thu, 22 Dec 2022 12:03:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03F273858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671710594; bh=n6u4epWtts/fh3jSHa29C/TMxk5ei+cfj1yEAa7b8Ys=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GSpCIt4eGtEENh4dJnv1O81w0I3zO5II1Tu0ACYo14V/y85Uk6VhK0R393PPQFpwk fwUwXAL9wIIWMnSocbtQTkj8b8gDq8oLkQDRbNuyK4rL/lrzWtLgD1pFXxiTmn/RGB WBlCjd92kdnjJel8yX+zMI7ccmc/FAhHFnpqHOS4= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105832] [13 Regression] Dead Code Elimination Regression at -O3 (trunk vs. 12.1.0) Date: Thu, 22 Dec 2022 12:03:12 +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: marxin 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: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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=3D105832 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | --- Comment #5 from Martin Li=C5=A1ka --- With r13-3897-gbe2c74fdcd0e8d66 get: gcc pr105832.c -c -O3 -fdump-tree-optimized=3D/dev/stdout --param max-jump-thread-duplication-stmts=3D17 ;; Function main (main, funcdef_no=3D0, decl_uid=3D2741, cgraph_uid=3D1, symbol_order=3D2) (executed once) int main () { [local count: 178992760]: c.a =3D 0; return 0; } before the revision I was: ;; Function main (main, funcdef_no=3D0, decl_uid=3D2741, cgraph_uid=3D1, symbol_order=3D2) (executed once) Removing basic block 5 int main () { char _1; unsigned char _2; char iftmp.0_11; [local count: 178992758]: _1 =3D c.b; _2 =3D (unsigned char) _1; if (_2 > 4) goto ; [50.00%] else goto ; [50.00%] [local count: 89496379]: iftmp.0_11 =3D _1 << 2; [local count: 178992760]: c.a =3D 0; return 0; }=