From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B800A3856948; Wed, 17 May 2023 06:56:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B800A3856948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684306597; bh=YgHOZgVNAn8f7O5qtTjPcQr6SWiiYU6Ifx/rFXok5XA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=enoOlnj4ULXhjtHyy+7OhjLu0LPPg6DumR39OZ7/1lx8EQUouaGoR+qzjjq0XSWgb GCieUAHvuBqD1GI05lDfGrTcq9uL7IREEixOkndB36RCefp48z9tBMmIawdAV1uSGI jl66DGlKjOit2siSWdXP9IrQtfcSHCdAOGsVXMlk= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109866] Sometimes using sub/test instead just test Date: Wed, 17 May 2023 06:56:37 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth 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: bug_status everconfirmed cf_reconfirmed_on 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=3D109866 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2023-05-17 --- Comment #5 from Richard Biener --- (In reply to Andrew Pinski from comment #4) > So I think forwprop could/should do this. > Right now it requires c to be single use but we should detect that somehow > a-b use is reverse dominated by the first use of c. Anyways this might > require a rewrite of parts of forwprop ... I think we could relax the single-use restriction to allow multiple uses in comparisons. Though I hoped to eventually get rid of the non-match.pd comparison forwarding in the pass ...=