[PATCH] D111904: [RISCV] Lower fixed vector CTLZ_ZERO_UNDEF/CTTZ_ZERO_UNDEF by converting to FP and extracting the exponent.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 15 10:48:34 PST 2021


craig.topper updated this revision to Diff 387325.
craig.topper added a comment.

Support scalable vectors.
Check legal types in RISCVTargetLowering constructor. Fixes unneeded vmerges.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111904/new/

https://reviews.llvm.org/D111904

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/ctlz-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/cttz-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-ctlz.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-cttz.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111904.387325.patch
Type: text/x-patch
Size: 422875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211115/51ca8510/attachment-0001.bin>


More information about the llvm-commits mailing list