[SLP] Fix PR35047: Fix default cost model for cast op in X86.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 7 Nov 2017 14:23:44 +0000 (14:23 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 7 Nov 2017 14:23:44 +0000 (14:23 +0000)
commite25a6fd390e77d953001e2087fc54c2c1169cbe4
tree540fcc85e313ac087703f2c2602c5e597712f931
parent99633ec5276634d4d49d98b563cc66b32c17be03
[SLP] Fix PR35047: Fix default cost model for cast op in X86.

Summary:
The cost calculation for default case on X86 target does not always
follow correct wayt because of missing 4-th argument in
`BaseT::getCastInstrCost()` call. Added this missing parameter.

Reviewers: hfinkel, mkuper, RKSimon, spatel

Subscribers: llvm-commits

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

llvm-svn: 317576
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Transforms/SLPVectorizer/X86/cast.ll
llvm/test/Transforms/SLPVectorizer/X86/load-merge.ll