[PATCH] D106240: [AArch64] Adjust the cost of integer sum reductions

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 18 08:23:50 PDT 2021


dmgreen created this revision.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This changes the cost to (LT.first-1) * cost(add) + 2, where the cost of an add is assumed to be 1. This brings it inline with the other reductions.


https://reviews.llvm.org/D106240

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/reduce-add.ll
  llvm/test/Analysis/CostModel/AArch64/vector-reduce.ll
  llvm/test/Transforms/SLPVectorizer/AArch64/gather-cost.ll
  llvm/test/Transforms/SLPVectorizer/AArch64/horizontal.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106240.359631.patch
Type: text/x-patch
Size: 10556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210718/d07f0e8b/attachment.bin>


More information about the llvm-commits mailing list