From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE757385770A; Fri, 4 Aug 2023 07:07:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE757385770A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691132834; bh=3QvslfDWa+quufiwkgOQDFOoXc14akKOABOLEJUeKUo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HYA98wYSo9kGqyzST519dbXPb8hdfUkCmJVetx+kr9Aj4iM/yIUiojbdiMqADuexe Gp8GNmn/NnRB4H7UGDc9jb8wEvf4mwVce07TMjS5PfGytVS7jRJPGIcZkjN3olkQBy +mPd7SkzmXPrmkMaKuIJCXalq8MAn3yVTNHIEU/Y= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110896] [12/13/14 Regression] gcc.dg/ubsan/pr81981.c is xfailed Date: Fri, 04 Aug 2023 07:07:13 +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: diagnostic, xfail X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status cf_reconfirmed_on 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=3D110896 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-08-04 --- Comment #1 from Richard Biener --- We simplify this to t[0] * 2 (by luck, so it could also be u[0] * 2) which means we lose track of the use of the other variable. Value numbering stmt =3D t$0_4 =3D PHI Setting value number of t$0_4 to t$0_4 (changed) Making available beyond BB4 t$0_4 for value t$0_4 Value numbering stmt =3D u$0_12 =3D PHI Marking CSEd to PHI node t$0_4 =3D PHI Setting value number of u$0_12 to t$0_4 (changed) ... Replaced redundant PHI node defining u$0_12 with t$0_4 gimple_simplified to _9 =3D t$0_4 * 2; early uninit sees conditional init of the memory and so refrains from diagnosing this. I suppose this is kind-of a duplicate of the many missed uninit diagnostics because of CCP optimistic propagation (and only because we don't do optimis= tic copyprop we do not have even more such cases).=