From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 95AEA3858C2C; Mon, 3 Oct 2022 12:02:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95AEA3858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664798520; bh=MgNH3NzeV8W8SUFsYsBe6dhu+Blv+1kwx0zAObrEDqY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F89xpKwwG4E8Lps/IDCJw8vMPR3M8mwYh821PegHWG6guXuX49hZdkQMAk/GPg0Hv 0rRcoc/S9VvT61Sf9x42em7aZd+Vm/zEV6QOGKV9NzCMHS1seLvNLVnhWIFvsvlK5R rRunp/TewcJcfVg5w5C+IBpRXUFUjdSKnWkZnlEA= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107130] [13 Regression] wrong code with -Os -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre since r13-2900-g001c60ccfeaf9a48 Date: Mon, 03 Oct 2022 12:02:00 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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: --- 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=3D107130 --- Comment #3 from Martin Li=C5=A1ka --- > Nice, so ffs() with a propagated constant argument now does a popcount() > instead? It should not. The problem is op_cfn_popcount is shared by both popcount and ffs, but the newly added transformation is valid only for popcount.=