[PATCH] D139512: [RISCV] Use vcpop.m to extract the first element from mask vector.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 23:48:22 PST 2022


jacquesguan created this revision.
jacquesguan added reviewers: craig.topper, asb, luismarques, frasercrmck, reames.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, evandro, 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, hiraditya, arichardson.
Herald added a project: All.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This patch uses vcpop.m with VL=1 to extract the first bit of mask.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139512

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/extractelt-i1.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-extract-i1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139512.480786.patch
Type: text/x-patch
Size: 13847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221207/97665fbe/attachment.bin>


More information about the llvm-commits mailing list