From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7EE433858D28; Tue, 29 Aug 2023 19:38:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EE433858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693337880; bh=ofIeElWF78V8Er6PkvfuWqmFdlh93GUyf0xeWGgxW0U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n8ZoVW0Fvga/vszejxoD2F7nvmOlpsBE5nueM9gvfzgxBG/M4LXZSf2wxyAmgVlLH gOcqpaw2Ui/vwkw/PwHeesE1m4c7REZK0DB9rznDSbcdsy8HxxgSC0f0yF11hlYY4u 4dgq5BUKM36qmRWVy2FSt4J4LPsiQauZcLQtLRfw= From: "dimitar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106562] PRU: Inefficient code for zero check of 64-bit (boolean) AND result Date: Tue, 29 Aug 2023 19:38:00 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: dimitar at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dimitar 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=3D106562 --- Comment #6 from Dimitar Dimitrov --- https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599276.html gives a g= ood analysis why deferring expansion decisions to the backend is preferred. Most backends already define cstore patterns, so it would not be valuable to add a generic code in emit_store_flag_int() as a fallback if cstore expansi= on fails. Such fallback would simply not be utilized on most architectures. Hence I intend do add a cstore pattern for PRU as a non-intrusive fix for t= his PR.=