[PATCH] D159283: Add intrinsic to count trailing zero elements in a vector
Kerry McLaughlin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 27 08:46:23 PDT 2023
kmclaughlin updated this revision to Diff 557916.
kmclaughlin marked 6 inline comments as done.
kmclaughlin added a comment.
- Changed `shouldExpandCttzElements` to query `hasSVEorSME()` and added a RUN line to AArch64/intrinsic-cttz-elts-sve.ll with `-mattr=+sme`
- Removed unnecessary getZExtOrTrunc from lowering of intrinsic in AArch64ISelLowering.cpp
- Added a test where the return type of the intrinsic is not a power of two
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159283/new/
https://reviews.llvm.org/D159283
Files:
llvm/docs/LangRef.rst
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/include/llvm/IR/Intrinsics.td
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/test/CodeGen/AArch64/intrinsic-cttz-elts-sve.ll
llvm/test/CodeGen/AArch64/intrinsic-cttz-elts.ll
llvm/test/CodeGen/RISCV/intrinsic-cttz-elts-vscale.ll
llvm/test/CodeGen/RISCV/intrinsic-cttz-elts.ll
llvm/test/CodeGen/X86/intrinsic-cttz-elts.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159283.557916.patch
Type: text/x-patch
Size: 39684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20231027/91b72637/attachment.bin>
More information about the llvm-commits
mailing list