Skip to content

Commit cef53dc

Browse files
author
Mohammed Agabaria
committedJul 27, 2017
[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
1 parent c03956c commit cef53dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎llvm/lib/Analysis/TargetTransformInfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ bool TargetTransformInfo::isLegalMaskedGather(Type *DataType) const {
167167
}
168168

169169
bool TargetTransformInfo::isLegalMaskedScatter(Type *DataType) const {
170-
return TTIImpl->isLegalMaskedGather(DataType);
170+
return TTIImpl->isLegalMaskedScatter(DataType);
171171
}
172172

173173
bool TargetTransformInfo::prefersVectorizedAddressing() const {

0 commit comments

Comments
 (0)
Please sign in to comment.