From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 18D453858D20; Mon, 14 Nov 2022 11:00:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18D453858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668423614; bh=mhqu7zhf3JrjB+g66NHRai128Ph1iyRi3kUeMqtk41U=; h=From:To:Subject:Date:From; b=lxL7qnpHVKGaUOh3Pi+uKmz0hg5JxSJ3mciNfTmil/kih5j9Lwy8htAByX+8bQAoN hMDiO+VgqiXyjfluGrJyfRinap71KqSIGway82hNQLeKj+zBgXt8NymRJ07+Q5CG7p uQAExgCDcw2ifd06Oy74f1rh6clIlfZ/z/hc+/iw= From: "stammark at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107674] New: [11/12/13 Regressions] arm: MVE codegen regressions on VCTP and vector LDR/STR instructions Date: Mon, 14 Nov 2022 11:00:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stammark at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107674 Bug ID: 107674 Summary: [11/12/13 Regressions] arm: MVE codegen regressions on VCTP and vector LDR/STR instructions Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: stammark at gcc dot gnu.org Target Milestone: --- We've found a couple of performance regressions with Arm MVE. These can be seen here: https://godbolt.org/z/onPjfW4zj * Between GCC 11 and 12 we seem to have started emitting a strange vmrs/sxth/vmsr instruction sequence after the vctp instruction. I suspect = this is something to do with the introduction of MODE_VECTOR_BOOL during that period. * Between GCC 12 and 13 we are no longer merging the pointer increments by = #16=20 into the ldr/strs and we have some random movs that aren't needed either. = This also happened in GCC 11, but we want to keep the improved codegen of GCC 12 here ;) This looks like a change in register allocation: Choosing alt 0 in insn 24: (0) =3Dw (1) Ux (2) Up {mve_vldrhq_z_sv= 8hi} Creating newreg=3D149, assigning class CORE_REGS to INC/DEC result r1= 49 Creating newreg=3D150 from oldreg=3D134, assigning class VPR_REG to r= 150 bad vs good Choosing alt 0 in insn 24: (0) =3Dw (1) Ux (2) Up {mve_vldrhq_z_sv= 8hi} Creating newreg=3D149 from oldreg=3D134, assigning class VPR_REG to r= 149 Does anyone have any further ideas on why these may have changed or how to = fix them? Thanks!=