From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CBFC3858C53; Sat, 26 Aug 2023 07:27:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CBFC3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693034828; bh=l/KZubDUT9wspLYiv1DYWkREeE7UWtnv0EshV/bFkWg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=viqWqCjKuCqHy5LVEzcUnAsSK0kHLb/xrjX0YCuC50L3/p+e9oZOvydmOuJwsqFZg HhMRBKAh0naLB1dQm9fCstEcKHuiRu3ZxMxpMM5WG9rqD1mnmNTf5FZBbDr/aWNU5J PNO+hn/8xBTUby5VGQo+rl/PL7EMaxrZ2n5LGtQY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102793] AArch64: sequential comparisons with equal conditional blocks don't use ccmp Date: Sat, 26 Aug 2023 07:27:07 +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: 12.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=3D102793 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > basically ccmp expension is just ifcombine really. > That is: > cc =3D bar cmp 0 > cc =3D cc.eq ? ne : d1 cmp d2 > cset cc.ne > So this is why doing a late pass ifcombine might be good for aarch64; I > don't know if how much compile time it would cost though. Or maybe isel can do this too ...=