[PATCH] D155150: [RISCV] Lower VP_CTLZ_ZERO_UNDEF/VP_CTTZ_ZERO_UNDEF/VP_CTLZ by converting to FP and extracting the exponent.

Liao Chunyu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 20:59:28 PDT 2023


liaolucy created this revision.
liaolucy added reviewers: craig.topper, frasercrmck, fakepaper56.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, 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, hiraditya, arichardson.
Herald added a project: All.
liaolucy requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, eopXD, MaskRay.
Herald added a project: LLVM.

D111904 <https://reviews.llvm.org/D111904>, D141585 <https://reviews.llvm.org/D141585> made RISC-V customized lower vector ISD::CTLZ_ZERO_UNDEF/CTTZ_ZERO_UNDEF/CTLZ
by converting to float and using the float result.

Perhaps VP_CTLZ_ZERO_UNDEF/VP_CTTZ_ZERO_UNDEF/VP_CTLZ could use the similar feature.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155150

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/ctlz-vp.ll
  llvm/test/CodeGen/RISCV/rvv/cttz-vp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155150.539837.patch
Type: text/x-patch
Size: 519711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230713/1ae2113c/attachment-0001.bin>


More information about the llvm-commits mailing list