[PATCH] D44490: [AArch64] Implement getArithmeticReductionCost

Matthew Simpson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 14 12:40:39 PDT 2018


mssimpso created this revision.
mssimpso added reviewers: mcrosier, evandro, samparker, joelkevinjones, aemerson.
Herald added subscribers: kristof.beyls, javed.absar, rengolin.

This patch provides an implementation of getArithmeticReductionCost for AArch64. We can specialize the cost of add reductions since they are computed using the 'addv' instruction.


Repository:
  rL LLVM

https://reviews.llvm.org/D44490

Files:
  lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  lib/Target/AArch64/AArch64TargetTransformInfo.h
  test/Analysis/CostModel/AArch64/vector-reduce.ll
  test/Transforms/SLPVectorizer/AArch64/horizontal.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44490.138438.patch
Type: text/x-patch
Size: 5757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180314/8209af6b/attachment.bin>


More information about the llvm-commits mailing list