[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
This commit is contained in:
Mohammed Agabaria 2017-07-27 10:28:16 +00:00
parent 4a193c9d63
commit 63de05fc82

View 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 {