From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B7233858C33; Sun, 30 Oct 2022 02:24:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B7233858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667096674; bh=RWkbWRAUFkcaXaEvVY6SsK7wOgM/0i6wGk3aP+J53ac=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Oakd/iOtgK4iy3w86odiSdde7LCsNfr8ZiLtpwF+IFoMmQ5NhtEaeJEsFZx9GA7tF muvqag4UNmUAIK0/bOm529CC14nuWA8c8qemhA8IrQB2rFFxMnXPLrPdbfJlhYNYfq WbVrjEku+7hYC/2XAHwY1rf1k+oH404Zx7bfuY9s= From: "zhongyunde at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104611] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0 on aarch64 Date: Sun, 30 Oct 2022 02:24:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: zhongyunde at huawei dot com X-Bugzilla-Status: UNCONFIRMED 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=3D104611 --- Comment #3 from vfdff --- As the load instructions usually have long latency, so do it need some ex= tra restrict when we try this transformation?=