[PATCH] D44489: [TTI, AArch64] Allow the cost model analysis to test vector reduce intrinsics

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


mssimpso created this revision.
mssimpso added reviewers: aemerson, ABataev, aschwaighofer, mkuper, mcrosier.
Herald added subscribers: kristof.beyls, javed.absar, rengolin.

When encountering a call to an intrinsic function, this patch checks if the intrinsic is a vector reduce intrinsic, and if so, computes the cost using getArithmeticReductionCost or getMinMaxReductionCost, rather than the default getIntrisicInstrCost. This patch also adds a test case for AArch64 that indicates the costs we currently compute for vector reduce intrinsics. These costs are inaccurate and will be updated in a follow-on patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D44489

Files:
  lib/Analysis/TargetTransformInfo.cpp
  test/Analysis/CostModel/AArch64/vector-reduce.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44489.138437.patch
Type: text/x-patch
Size: 15418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180314/fbfadeca/attachment.bin>


More information about the llvm-commits mailing list