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

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 04:20:01 PDT 2020


kmclaughlin created this revision.
kmclaughlin added reviewers: cameron.mcinally, paulwalker-arm, sdesmalen, efriedma.
Herald added subscribers: llvm-commits, ecnelises, psnobl, hiraditya, tschuett.
Herald added a reviewer: rengolin.
Herald added a project: LLVM.
kmclaughlin requested review of this revision.

This patch uses the existing LowerFixedLengthReductionToSVE function to also lower
scalable vector reductions. A separate function has been added to lower VECREDUCE_AND
& VECREDUCE_OR operations with predicate types using ptest.

Lowering scalable floating-point reductions will be addressed in a follow up patch,
for now these will hit the assertion added to expandVecReduce() in TargetLowering.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89382

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.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-reduce.ll
  llvm/test/CodeGen/AArch64/sve-split-int-reduce.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89382.298108.patch
Type: text/x-patch
Size: 33612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201014/5bfcbb30/attachment.bin>


More information about the llvm-commits mailing list