From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 631E63858C62; Tue, 27 Sep 2022 10:19:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 631E63858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664273950; bh=knf6zoI7nLH7hQRe4xVtXU2VacnPvSPd0676ely5DGg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=k+S2WblTifi3mOV9Txk/A98bE/4ik9KA/PTlrlrOglYR4uYAq7uR3nITQQQmQiNza xBuX5ok4OGdzBJ+IUAMGW/5eB1zGBBeedPiIccGhpnNVGBqNgYRmeKhZNLzJkP5NEf VGLLjlNkdrDkFgGuKSVt8dGFhMI2bpLpY+GPXZcU= From: "drepper.fsp+rhbz at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107043] range information not used in popcount Date: Tue, 27 Sep 2022 10:19:10 +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: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: drepper.fsp+rhbz at gmail dot com 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=3D107043 --- Comment #2 from Ulrich Drepper --- My original example and Andrew's g0 are handled by Aldy's patches 2022-09-26 Aldy Hernandez PR tree-optimization/107009 * range-op.cc (operator_bitwise_and::op1_range): Optimize 0 =3D x &= MASK. (range_op_bitwise_and_tests): New test. 2022-09-26 Aldy Hernandez PR tree-optimization/107009 * tree-ssa-dom.cc (dom_opt_dom_walker::set_global_ranges_from_unreachable_edges): Iterate over exports. The g1 test case isn't handled, yet.=