[llvm] 8a267b7 - [SLP][NFC]Remove unused variable

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 11:45:05 PDT 2024


Author: Alexey Bataev
Date: 2024-08-30T11:44:29-07:00
New Revision: 8a267b721180b172e329601039a7e170fa8aa5b5

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

LOG: [SLP][NFC]Remove unused variable

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 8f5cbcaa8f66e3..848547c6ef3663 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -4903,7 +4903,6 @@ BoUpSLP::LoadsState BoUpSLP::canVectorizeLoads(
       if (DemandedElts.isAllOnes())
         // All loads gathered - try smaller VF.
         continue;
-      InstructionCost ScalarVFGEPCost = 0;
       // Can be vectorized later as a serie of loads/insertelements.
       InstructionCost VecLdCost = 0;
       if (!DemandedElts.isZero()) {


        


More information about the llvm-commits mailing list