diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-11-07 14:23:44 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-11-07 14:23:44 +0000 |
commit | e25a6fd390e77d953001e2087fc54c2c1169cbe4 (patch) | |
tree | 540fcc85e313ac087703f2c2602c5e597712f931 /llvm/lib/Target/X86/X86TargetTransformInfo.cpp | |
parent | 99633ec5276634d4d49d98b563cc66b32c17be03 (diff) | |
download | bcm5719-llvm-e25a6fd390e77d953001e2087fc54c2c1169cbe4.tar.gz bcm5719-llvm-e25a6fd390e77d953001e2087fc54c2c1169cbe4.zip |
[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
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetTransformInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp index 8bddf574554..6772d96c799 100644 --- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp +++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp @@ -1437,7 +1437,7 @@ int X86TTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, return Entry->Cost; } - return BaseT::getCastInstrCost(Opcode, Dst, Src); + return BaseT::getCastInstrCost(Opcode, Dst, Src, I); } int X86TTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, |