From 594c5b1a42cfc1b83a23d096e16586ccc8503532 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 17 Aug 2022 11:17:20 +0100 Subject: [PATCH] [SLP] Update TODO comment about shuffle mask decoding This is handled in ShuffleVectorInst/getShuffleCost - getInstructionThroughput is (slowly) being removed. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index f5dc66c..926c30b 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -345,7 +345,7 @@ static bool isUndefVector(const Value *V) { /// InstCombiner transforms this into a shuffle and vector mul /// Mask will return the Shuffle Mask equivalent to the extracted elements. /// TODO: Can we split off and reuse the shuffle mask detection from -/// TargetTransformInfo::getInstructionThroughput? +/// ShuffleVectorInst/getShuffleCost? static Optional isFixedVectorShuffle(ArrayRef VL, SmallVectorImpl &Mask) { const auto *It = -- 2.7.4