]> granicus.if.org Git - llvm/commitdiff
[TTI] fixing a bug in the isLegalMaskedScatter API
authorMohammed Agabaria <mohammed.agabaria@intel.com>
Thu, 27 Jul 2017 10:28:16 +0000 (10:28 +0000)
committerMohammed Agabaria <mohammed.agabaria@intel.com>
Thu, 27 Jul 2017 10:28:16 +0000 (10:28 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309260 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/TargetTransformInfo.cpp

index 762760dd3329f98bdefac46db851815dc8f48e3c..3c51a07bbfe47d905b010a3e3f84355f69567356 100644 (file)
@@ -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 {