[llvm] 8a8a810 - [SLP][NFC] Remove unused local variable in lambda (#156835)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 10 19:05:59 PDT 2025


Author: Garth Lei
Date: 2025-09-11T02:05:55Z
New Revision: 8a8a810506cb8ba9b7992c3174e53aa60e9175f7

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

LOG: [SLP][NFC] Remove unused local variable in lambda (#156835)

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 6a56dbfaa0157..75cace77ec534 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -11287,9 +11287,6 @@ void BoUpSLP::buildTreeRec(ArrayRef<Value *> VLRef, unsigned Depth,
     if (!canBuildSplitNode(VL, LocalState, Op1, Op2, ReorderIndices))
       return false;
 
-    SmallVector<Value *> NewVL(VL.size());
-    copy(Op1, NewVL.begin());
-    copy(Op2, std::next(NewVL.begin(), Op1.size()));
     auto Invalid = ScheduleBundle::invalid();
     auto *TE = newTreeEntry(VL, TreeEntry::SplitVectorize, Invalid, LocalState,
                             UserTreeIdx, {}, ReorderIndices);


        


More information about the llvm-commits mailing list