[X86][SSE] Add cost model values for CTPOP of vectors
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 20 Jul 2016 10:41:28 +0000 (10:41 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 20 Jul 2016 10:41:28 +0000 (10:41 +0000)
commit1b4f511aaa0062f47fffcd7acf983cdab48b98c3
treeddbb69bd392604efd07ac84bbc50345b14862cf9
parentdcad913ab66fde15d00c8d5116b00efef082cc41
[X86][SSE] Add cost model values for CTPOP of vectors

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.

Differential Revision: https://reviews.llvm.org/D22456

llvm-svn: 276104
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/ctbits-cost.ll
llvm/test/Transforms/SLPVectorizer/X86/ctpop.ll