From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1829F3858C60; Tue, 18 Jul 2023 21:42:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1829F3858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689716547; bh=pP2JvtExBmZzryeAnrOd9QqOjrhgtvSMXSRkPlmOsvU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=B8gM/ZCW5PkSgG6lsQKzid081SOGC43YI2OPvbN2ovn/wV7+97/0vWTcP1v0Rx2O1 JH4cf6l00ilpEvI8Y0ZNwbRPZP41I472dPAHqe8EvrJGjz6lAvF+DIt+0VdAszQOSf C1BcCXAhLD5fjIAso1aJs6VEkYONZPcbcRXjXknc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110726] [14 Regression] wrong code on llvm-16 around 'a |= a == 0' Date: Tue, 18 Jul 2023 21:42:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia 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=3D110726 --- Comment #8 from Andrew Pinski --- (In reply to Sergei Trofimovich from comment #7) > Silly question: I would expect -O0 not to perform any simplifications like > that. Does `gcc` have a knob to disable `match.pd` templates? Or some of > them are crucial for correctness? Some are crucial for correctness usually dealing with c++. you could always= use dbg_cnt to try to narrow down which one is failing. See=20 https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dgcc/dbgcnt.def;h=3D9e2f1d= 857b49c6c331cc7d1c419eafa0f2403e96;hb=3DHEAD For on how to use dbg_cnt match is the counter here. Also for generic folding -fdump-tree-original-folding will have the debug i= nfo on what match pattern was applied during "fold" (of generic).=