[PATCH] D48172: [CostModel][AArch64] Add some initial costs for SK_Select and SK_PermuteSingleSrc

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 10:22:21 PDT 2018


RKSimon updated this revision to Diff 152113.
RKSimon added a comment.

I'm trying a different approach which should work better as additional costs are added for other types or shuffle kinds - this will be beneficial to aarch64 as SLP etc. starts using the ShuffleKind matches more directly (see https://reviews.llvm.org/D48236).

I've gone back to using the costs tables as they tend to be easier to understand at a glance and the number of entries/calls aren't really large enough to be a perf issue. I've also changed the key to use the ShuffleKind, which matches what we do on X86, again for clarity.


Repository:
  rL LLVM

https://reviews.llvm.org/D48172

Files:
  lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  test/Analysis/CostModel/AArch64/shuffle-select.ll
  test/Transforms/SLPVectorizer/AArch64/transpose.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48172.152113.patch
Type: text/x-patch
Size: 17696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/49e964c5/attachment.bin>


More information about the llvm-commits mailing list