From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74D0B3858401; Sun, 17 Sep 2023 16:44:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74D0B3858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694969060; bh=J0FM8FboHhf67xJs8ihbTNIQ1ams4JTTX9jYhkNxU2Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fRWD+nkZK05bQTKljxJVR1ckgiEXfcJbMFEofcznpfSlUdpa40+r4/yi4Ho58ISRf SKHTdsDpQIVZRcsxM/GLrWJWQfoLM8AkW/iLviTloy11QsGniT9NWD0DZXSVWajg3R fWMl/xlRcTOB7D9MH8lR+2i1WXxIr4xg/aLk5wZA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94920] Failure to optimize abs pattern from arithmetic with selected operands based on comparisons with 0 Date: Sun, 17 Sep 2023 16:44:19 +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: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone 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=3D94920 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |13.0 --- Comment #11 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > Oh I see the issue. it is not related at all to logical-op-non-short-circ= uit > but rather than the testcase should be split into two, one for the scalar > and one for the vector case. And then the vector case should match not at > optimized but right before vector lowering happens, maybe in forwprop1 or= 2. That was fixed in r13-6927-gad32fcb8e91ba85cb4676c62 So all fixed in GCC 13= .=