[SLP][NFC]Try to fix MSVC buildbots with a workaround, NFC.
authorAlexey Bataev <a.bataev@outlook.com>
Tue, 18 Oct 2022 14:36:22 +0000 (07:36 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Tue, 18 Oct 2022 14:50:10 +0000 (07:50 -0700)
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

index 56710ee..658a943 100644 (file)
@@ -6034,6 +6034,8 @@ InstructionCost BoUpSLP::getEntryCost(const TreeEntry *E,
   auto *FinalVecTy = FixedVectorType::get(VecTy->getElementType(), EntryVF);
 
   bool NeedToShuffleReuses = !E->ReuseShuffleIndices.empty();
+  // FIXME: it tries to fix a problem with MSVC buildbots.
+  TargetTransformInfo *TTI = this->TTI;
   auto AdjustExtractsCost = [=](InstructionCost &Cost) {
     DenseMap<Value *, int> ExtractVectorsTys;
     SmallPtrSet<Value *, 4> CheckedExtracts;