summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/TargetTransformInfo.cpp
diff options
context:
space:
mode:
authorMohammed Agabaria <mohammed.agabaria@intel.com>2017-07-27 10:28:16 +0000
committerMohammed Agabaria <mohammed.agabaria@intel.com>2017-07-27 10:28:16 +0000
commitcef53dcb6fbf7a5222c0b42a287a4f7a5200246d (patch)
treeda538f34ff6fb15d482b2dd921385356cef0b3b6 /llvm/lib/Analysis/TargetTransformInfo.cpp
parentc03956cf73d0406f7e70a399faae803cde9a177c (diff)
downloadbcm5719-llvm-cef53dcb6fbf7a5222c0b42a287a4f7a5200246d.tar.gz
bcm5719-llvm-cef53dcb6fbf7a5222c0b42a287a4f7a5200246d.zip
[TTI] fixing a bug in the isLegalMaskedScatter API
isLegalMaskedScatter called the Gather version which is a bug. use test case is provided within the patch of AVX2 gathers at: https://reviews.llvm.org/D35772 Differential Revision: https://reviews.llvm.org/D35786 llvm-svn: 309260
Diffstat (limited to 'llvm/lib/Analysis/TargetTransformInfo.cpp')
-rw-r--r--llvm/lib/Analysis/TargetTransformInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp
index 762760dd332..3c51a07bbfe 100644
--- a/llvm/lib/Analysis/TargetTransformInfo.cpp
+++ b/llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -167,7 +167,7 @@ bool TargetTransformInfo::isLegalMaskedGather(Type *DataType) const {
}
bool TargetTransformInfo::isLegalMaskedScatter(Type *DataType) const {
- return TTIImpl->isLegalMaskedGather(DataType);
+ return TTIImpl->isLegalMaskedScatter(DataType);
}
bool TargetTransformInfo::prefersVectorizedAddressing() const {
OpenPOWER on IntegriCloud