From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A8B43857807; Mon, 8 Mar 2021 10:41:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A8B43857807 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af Date: Mon, 08 Mar 2021 10:41:58 +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, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2021 10:41:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98856 --- Comment #36 from Richard Biener --- (In reply to Richard Biener from comment #35) > (In reply to Richard Biener from comment #33) > > Created attachment 50308 [details] > > patch > >=20 > > I am testing the following. >=20 > It FAILs >=20 > FAIL: gcc.target/i386/avx512dq-concatv2di-1.c scan-assembler > vpinsrq[^\\n\\r]*\\ > \\\$1[^\\n\\r]*%[re]si[^\\n\\r]*%xmm18[^\\n\\r]*%xmm19 That's exactly the case we're looking after. V2DI concat from two GPRs. > FAIL: gcc.target/i386/avx512dq-concatv2di-1.c scan-assembler > vpinsrq[^\\n\\r]*\\\\\$1[^\\n\\r]*%rsi[^\\n\\r]*%xmm16[^\\n\\r]*%xmm17 This is, like below, a MEM case. > FAIL: gcc.target/i386/avx512vl-concatv2di-1.c scan-assembler > vmovhps[^\\n\\r]*%[re]si[^\\n\\r]*%xmm18[^\\n\\r]*%xmm19 This one is because nonimmediate_gr_operand also matches a MEM, in this case we apply the peephole to (insn 12 11 13 2 (set (reg/v:V2DI 55 xmm19 [ c ]) (vec_concat:V2DI (reg:DI 54 xmm18 [91])=20 (mem:DI (reg/v/f:DI 4 si [orig:86 y ] [86]) [1 *y_8(D)+0 S8 A64= ])))=20 latency-wise memory isn't any better than a GPR so the decision to split is reasonable. > I'll see how to update those next week. So I updated the above to check for vpunpcklqdq instead.=