[AArch64] Use PerfectShuffle costs in AArch64TTIImpl::getShuffleCost
authorDavid Green <david.green@arm.com>
Wed, 27 Apr 2022 11:09:01 +0000 (12:09 +0100)
committerDavid Green <david.green@arm.com>
Wed, 27 Apr 2022 11:09:01 +0000 (12:09 +0100)
commitd6327050e00f590fe47fb46fdb2399ef69814a31
tree54101a47fec84e75c03a389a4b0342c6e571bbbe
parentc45e4c140f98159246a021f2e74892e54eb3df33
[AArch64] Use PerfectShuffle costs in AArch64TTIImpl::getShuffleCost

Given a shuffle with 4 elements size 16 or 32, we can use the costs
directly from the PerfectShuffle tables to get a slightly more accurate
cost for the resulting shuffle.

Differential Revision: https://reviews.llvm.org/D123409
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64PerfectShuffle.h
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/shuffle-other.ll
llvm/test/Analysis/CostModel/AArch64/shuffle-select.ll
llvm/test/Transforms/PhaseOrdering/AArch64/matrix-extract-insert.ll