From: Alexey Bataev Date: Tue, 18 Oct 2022 14:36:22 +0000 (-0700) Subject: [SLP][NFC]Try to fix MSVC buildbots with a workaround, NFC. X-Git-Tag: upstream/17.0.6~30248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e79532d28ced4ff8918a64592f83c3b109327550;p=platform%2Fupstream%2Fllvm.git [SLP][NFC]Try to fix MSVC buildbots with a workaround, NFC. --- diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 56710ee..658a943 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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 ExtractVectorsTys; SmallPtrSet CheckedExtracts;