[PATCH] D95603: [CostModel]Add cost model for experimental.vector.reverse
Caroline via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 02:02:43 PST 2021
CarolineConcatto created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
CarolineConcatto requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch uses the function getShuffleCost with SK_Reverse to compute the cost
for experimental.vector.reverse.
For scalable vector type, it adds a table will the legal types on
AArch64TTIImpl::getShuffleCost to not assert in BasicTTIImpl::getShuffleCost,
and for fixed vector, it relies on the existing cost model in BasicTTIImpl.
Depends on D94883 <https://reviews.llvm.org/D94883>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95603
Files:
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/getIntrinsicInstrCost-vector-reverse.ll
llvm/test/Analysis/CostModel/AArch64/sve-getIntrinsicInstrCost-vector-reverse.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95603.319795.patch
Type: text/x-patch
Size: 18409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210128/51ae63cb/attachment.bin>
More information about the llvm-commits
mailing list