[SLP] Update TODO comment about shuffle mask decoding
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 17 Aug 2022 10:17:20 +0000 (11:17 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 17 Aug 2022 10:41:46 +0000 (11:41 +0100)
This is handled in ShuffleVectorInst/getShuffleCost - getInstructionThroughput is (slowly) being removed.

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

index f5dc66c..926c30b 100644 (file)
@@ -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<TargetTransformInfo::ShuffleKind>
 isFixedVectorShuffle(ArrayRef<Value *> VL, SmallVectorImpl<int> &Mask) {
   const auto *It =