[llvm] r309260 - [TTI] fixing a bug in the isLegalMaskedScatter API

Mohammed Agabaria via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 03:28:17 PDT 2017


Author: magabari
Date: Thu Jul 27 03:28:16 2017
New Revision: 309260

URL: http://llvm.org/viewvc/llvm-project?rev=309260&view=rev
Log:
[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


Modified:
    llvm/trunk/lib/Analysis/TargetTransformInfo.cpp

Modified: llvm/trunk/lib/Analysis/TargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/TargetTransformInfo.cpp?rev=309260&r1=309259&r2=309260&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/TargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/TargetTransformInfo.cpp Thu Jul 27 03:28:16 2017
@@ -167,7 +167,7 @@ bool TargetTransformInfo::isLegalMaskedG
 }
 
 bool TargetTransformInfo::isLegalMaskedScatter(Type *DataType) const {
-  return TTIImpl->isLegalMaskedGather(DataType);
+  return TTIImpl->isLegalMaskedScatter(DataType);
 }
 
 bool TargetTransformInfo::prefersVectorizedAddressing() const {




More information about the llvm-commits mailing list