[PATCH] D89382: [SVE][CodeGen] Lower scalable integer vector reductions

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 10:30:47 PDT 2020


kmclaughlin updated this revision to Diff 299397.
kmclaughlin marked 3 inline comments as done.
kmclaughlin added a comment.

- Lower vecreduce_[s|u]max & vecreduce_[s|u]min to `AND` and `OR` for i1 types
- Add lowering for vecreduce_xor to `LowerPredReductionToSVE` using the cntp intrinsic
- Split predicate reduction tests into separate .ll files


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

https://reviews.llvm.org/D89382

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/test/CodeGen/AArch64/sve-int-pred-reduce.ll
  llvm/test/CodeGen/AArch64/sve-int-reduce.ll
  llvm/test/CodeGen/AArch64/sve-split-int-pred-reduce.ll
  llvm/test/CodeGen/AArch64/sve-split-int-reduce.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89382.299397.patch
Type: text/x-patch
Size: 49442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201020/bff5f230/attachment.bin>


More information about the llvm-commits mailing list