[PATCH] D114314: [X86][TTI] Costmodel for AVX512DQ's VPMOVM2[DQ] / VPMOV[DQ]2M instructions

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 21 04:16:24 PST 2021


lebedev.ri updated this revision to Diff 388747.
lebedev.ri added a comment.

Fix really dumb think-o - trunc cost is obviously 2, not 1 - https://godbolt.org/z/1TeYMjWE7 - trunc keeps lowest bit, while VPMOV.2M keeps the highest bit.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114314/new/

https://reviews.llvm.org/D114314

Files:
  llvm/lib/Target/X86/X86TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/X86/extend.ll
  llvm/test/Analysis/CostModel/X86/min-legal-vector-width.ll
  llvm/test/Analysis/CostModel/X86/trunc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114314.388747.patch
Type: text/x-patch
Size: 43819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211121/c102ef56/attachment.bin>


More information about the llvm-commits mailing list