From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 496793858401; Mon, 3 Oct 2022 15:39:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 496793858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664811595; bh=krag9w5upBAigm1L8izIpg/Sov0Wx74GUgcwr4dN2L0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EPMfyFY61wqh1FzMHzTjsFM0+xy4h2jry9m72HrmRHLJ52OlHBNmZf/9SjIwgZAbW QYbCbGtauZzxniIMYR1337HIUu8AptDTbowDAolK43xsAJQQXXKZAzjh9AMGHM4Owd efLfAtYamnNUnnXh3qcvAuWYTkg2q1jc4Xwp8VlE= From: "aldyh 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 15:39:55 +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: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |aldyh at gcc dot gn= u.org --- Comment #4 from Aldy Hernandez --- (In reply to Martin Li=C5=A1ka from comment #3) > > Nice, so ffs() with a propagated constant argument now does a popcount() > > instead? >=20 > 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. Ughh, indeed. Thanks for the analysis Martin.=