From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60BC5385840F; Mon, 21 Aug 2023 23:09:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60BC5385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692659397; bh=qXinG5jaR18Xkw7BAn1/5PML78vJoJ9CROri63LPKPE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n8ye8xk8ZOodDvwVqgKiIwNzxtKbijZIVyX5waevlIiLflFKePIatspfus84LO8se C4ing7g4YyVEuzIU08BgtxF20JiqKML5J96bdS2leC2RyV0ltW/zSNJgIjPv+HwGsu QqaGT4oCN9iOG482CSvM0H7X8UUOx+UaRMXvsjrw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109943] [13/14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r13-6834-g41ade3399bd Date: Mon, 21 Aug 2023 23:09:56 +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: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed cf_reconfirmed_on bug_status 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=3D109943 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-08-21 Status|UNCONFIRMED |NEW --- Comment #4 from Andrew Pinski --- For the testcase in comment #0, fre3 is able to optmize it away (in GCC 12.3.0): Applying pattern match.pd:636, gimple-match.cc:47124 Match-and-simplified _10 % _8 to 0 That is because we figure out that _10 is the same as _8 somehow. Confirmed.=