[PATCH] D22456: [X86][SSE] Add cost model values for CTPOP of vectors

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 18 03:48:34 PDT 2016


RKSimon created this revision.
RKSimon added reviewers: mkuper, ab, silvas, spatel, andreadb.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.

This patch adds costs for the vectorized implementations of CTPOP, the default values were seriously underestimating the cost of these and was encouraging vectorization on targets where serialized use of POPCNT would be much better.

Repository:
  rL LLVM

https://reviews.llvm.org/D22456

Files:
  lib/Target/X86/X86TargetTransformInfo.cpp
  test/Analysis/CostModel/X86/ctbits-cost.ll
  test/Transforms/SLPVectorizer/X86/ctpop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22456.64294.patch
Type: text/x-patch
Size: 26890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160718/351f9680/attachment.bin>


More information about the llvm-commits mailing list