From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 73F3E3858CD1; Sat, 2 Sep 2023 20:52:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73F3E3858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693687965; bh=ZpI/f9Puntr4z6nnp8uFJSGKNHfBsrM+wBsUdM1flLY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kjMytOr0f1c0RS25o2kg/mpMa6c0d1CMBojVMUTS+oi5P60qkg2JBcPP4MdEWzJXN RjB4osqMzi7APViCDjeZysHet6F+OOymdc9aJ4RvZbBJoB8DZ3tzZDExwDbuNrHNTB 5CZTt1sf2hBY2NUu2AH1yDhumxroFBJJa4LIkmOU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110413] [14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r14-1880-g827e208fa64 Date: Sat, 02 Sep 2023 20:52:44 +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=3D110413 --- Comment #2 from Andrew Pinski --- I noticed on many of these, the return value of the static function is an address (constant). Seems like we could do something like IPA-CCP for return values. And that will fix almost all of them ...=