From: Mohammed Agabaria Date: Thu, 27 Jul 2017 10:28:16 +0000 (+0000) Subject: [TTI] fixing a bug in the isLegalMaskedScatter API X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c150611fb3a4d2cf913e65aef0be02e4f3bba86;p=llvm [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309260 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/TargetTransformInfo.cpp b/lib/Analysis/TargetTransformInfo.cpp index 762760dd332..3c51a07bbfe 100644 --- a/lib/Analysis/TargetTransformInfo.cpp +++ b/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 {