[PATCH] D155039: [RISCV] precommit for removing useless copy from undef subreg
Piyou Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 20:29:36 PDT 2023
BeMg created this revision.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, arichardson.
Herald added a project: All.
BeMg requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, eopXD, MaskRay.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155039
Files:
llvm/test/CodeGen/RISCV/rvv/undef-earlyclobber-chain.ll
Index: llvm/test/CodeGen/RISCV/rvv/undef-earlyclobber-chain.ll
===================================================================
--- llvm/test/CodeGen/RISCV/rvv/undef-earlyclobber-chain.ll
+++ llvm/test/CodeGen/RISCV/rvv/undef-earlyclobber-chain.ll
@@ -145,3 +145,18 @@
declare <vscale x 1 x i16> @llvm.experimental.stepvector.nxv1i16()
declare <vscale x 8 x i16> @llvm.vector.insert.nxv8i16.nxv1i16(<vscale x 8 x i16>, <vscale x 1 x i16>, i64 immarg)
declare <vscale x 8 x i8> @llvm.riscv.vrgatherei16.vv.nxv8i8.i64(<vscale x 8 x i8>, <vscale x 8 x i8>, <vscale x 8 x i16>, i64)
+
+
+define void @repeat_shuffle(<2 x double> %v, ptr noalias %q) {
+; CHECK-LABEL: repeat_shuffle:
+; CHECK: # %bb.0:
+; CHECK-NEXT: vmv2r.v v12, v8
+; CHECK-NEXT: vsetivli zero, 4, e64, m2, ta, ma
+; CHECK-NEXT: vmv1r.v v13, v10
+; CHECK-NEXT: vslideup.vi v8, v12, 2
+; CHECK-NEXT: vse64.v v8, (a0)
+; CHECK-NEXT: ret
+ %w = shufflevector <2 x double> %v, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
+ store <4 x double> %w, ptr %q
+ ret void
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155039.539363.patch
Type: text/x-patch
Size: 1076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230712/8ba6fa75/attachment.bin>
More information about the llvm-commits
mailing list