From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7FDE3858C78; Tue, 27 Jun 2023 17:59:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7FDE3858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687888783; bh=1XEEII0XynwYipbVWC0rOC1BgMMZTWPC15h5/9PlFMo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=st6AnbqQqy7nWA6u/cxyDDoLck/mX4tgr1jSTlnOya4UFRWG4yM6Q++HdDkTfzq1M I6R8nXLy63ayeM6osm+ZLN8MJ8c5znBvz2DM2Fk4s3of9KCN/OQjz4XwR+QkMxcn6w cvSaBW409JICnciyuiLIrvCv5wABwWrPuXDCUeRk= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/110202] _mm512_ternarylogic_epi64 generates unnecessary operations Date: Tue, 27 Jun 2023 17:59:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: amonakov 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=3D110202 --- Comment #7 from Alexander Monakov --- Note that vpxor serves as a dependency-breaking instruction (see PR 110438)= . So in negate1 we do the right thing for the wrong reasons, and in negate2 we c= an cause a substantial stall if the previous computation of xmm0 has a non-tri= vial dependency chain.=