From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 61AA73858D38; Wed, 12 Oct 2022 21:33:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61AA73858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665610386; bh=FCdbgf8Oz/ovuClmkDiKR/prfQCBBhf9kRPWXpjPqCw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UYAoMdoFYTsE8y+idbNkYJdAT16CoKsNNaKHXq+jrDqVqmYgrmNLP8YWUQuqaGrhk +OmpNhLJ8qy5YgcKJZwHLQYS0QW8tAdupmCEwFhQFScrCut4cUpirUU+LLPDGoXD8L svQ+EgPuU+91jotDk00cSsAuF9ia89PV/TMwEWuw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107090] [aarch64] sequence logic should be combined with mul and umulh Date: Wed, 12 Oct 2022 21:33:05 +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: 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: --- 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=3D107090 --- Comment #9 from Andrew Pinski --- Look at how ctz_table_index is done and used. The matching is done in match.pd language and then inside simplify_count_trailing_zeroes (tree-ssa-forwprop.cc) it is used=20 nop_atomic_bit_test_and_p is another example but that is more complex and is used inside tree-ssa-ccp.cc .=