From e79532d28ced4ff8918a64592f83c3b109327550 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Tue, 18 Oct 2022 07:36:22 -0700 Subject: [PATCH] [SLP][NFC]Try to fix MSVC buildbots with a workaround, NFC. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.7.4