From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 569253858C54; Thu, 2 Mar 2023 12:42:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 569253858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677760977; bh=Mej2lfhYIyLEumozZYC5JOTPYHeI8MFFXnfm0uG8RaQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lNqo9jswAPbKyKoRYFGtMxBeeSNF7TUB83f0wvfXVo2jsKn7DpB7OQ3LarepILfIq W2n0wypjWfmGoQ//srmJCORdJ34jb1kbzSymYWZ8qDgvtk9RWxopEV+9VtgsfjQaT4 zrxv/1uILZvZJeFXMesH+7K9KRg7AtV2Nq+vpd9U= From: "jskumari at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106770] powerpc64le: Unnecessary xxpermdi before mfvsrd Date: Thu, 02 Mar 2023 12:42:55 +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: 11.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jskumari at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jskumari 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=3D106770 --- Comment #10 from Surya Kumari Jangala --- The swap pass analyzes vector computations and removes unnecessary doublewo= rd swaps (xxswapdi instructions). The swap pass first constructs webs and remo= ves swap instructions if possible. If the web contains operations that are sensitive to element order, such as an extract, then such instructions shou= ld be modified. For example, the lane is changed on an extract operation. As we saw in comment 9, the swap pass has incorrectly changed the lane of t= he vec_extract. The swap pass modifies the extract operation even though there= are no swap instructions in the web. This is a bug in the swap pass. It should modify only those operations which are present in webs having swap instructions.=