From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A797E3858418; Wed, 21 Sep 2022 12:53:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A797E3858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663764789; bh=Yi3es6oyffIxZlXb4BDxWLSNxrhwv+AV0xkTwvgpDpc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PC/zuY6g1qM0GYOl5fjmEfmgWWu1/+WI6cCPRIFOVhtgnirLsiCzI2S4yMSm75+zb AlI4u8HvwRGg/ACsGIUA8ZPFsjDvsDTvAQGenY3BvnHMWxp25brX6HDcAioCe7UGVQ 7mmuCubtqbygvVteqP+AbW1s7HqLGl1pg/yN7P54= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE Date: Wed, 21 Sep 2022 12:52:28 +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: 12.2.1 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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=3D106922 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #53597|0 |1 is obsolete| | --- Comment #14 from Richard Biener --- Created attachment 53599 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53599&action=3Dedit candidate patch 2 OK, so I think I know what's going wrong eventually. The following impleme= nts the trick differently. We might eventually be able to use dominance of the virtual operands to check for the cross-iteration case as further improveme= nt.=