[llvm] e79532d - [SLP][NFC]Try to fix MSVC buildbots with a workaround, NFC.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 07:50:27 PDT 2022


Author: Alexey Bataev
Date: 2022-10-18T07:50:10-07:00
New Revision: e79532d28ced4ff8918a64592f83c3b109327550

URL: https://github.com/llvm/llvm-project/commit/e79532d28ced4ff8918a64592f83c3b109327550
DIFF: https://github.com/llvm/llvm-project/commit/e79532d28ced4ff8918a64592f83c3b109327550.diff

LOG: [SLP][NFC]Try to fix MSVC buildbots with a workaround, NFC.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 56710eee0de2..658a943301ee 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<Value *, int> ExtractVectorsTys;
     SmallPtrSet<Value *, 4> CheckedExtracts;


        


More information about the llvm-commits mailing list