From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F31F83858C66; Mon, 6 Mar 2023 19:35:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F31F83858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678131338; bh=3yiEhW4Q20BjtHhqpvcEkLnL1qID3vdah+wrguuEBxE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CW9yZ99BY2X684djsweE/nWPoBrqzECNRHKAiQAibUiYrv2meRhaaOUUUO6WHh3JN tT1lecDNVpjpb64Uw25u+iOlas+9BJxk/2mlsmsitleis+R7AcOGiFhlhIu8GDG7TE 2D4eGkgBN5ncwg40lCCn7fMbglET07B2zlUmgaJw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109045] assume attribute does not always optimize std::optional cases Date: Mon, 06 Mar 2023 19:35:38 +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: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D109045 --- Comment #1 from Andrew Pinski --- GCC does optimize much dealing with assume and function calls really so thi= s is not really shocking.=