[llvm] f9fc6f6 - [SLP] Remove dead initialization noticed by static analyser. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 21 09:42:40 PDT 2024
Author: Simon Pilgrim
Date: 2024-06-21T17:42:01+01:00
New Revision: f9fc6f6d7504e3c8eb6844a34a2ca988da9df21c
URL: https://github.com/llvm/llvm-project/commit/f9fc6f6d7504e3c8eb6844a34a2ca988da9df21c
DIFF: https://github.com/llvm/llvm-project/commit/f9fc6f6d7504e3c8eb6844a34a2ca988da9df21c.diff
LOG: [SLP] Remove dead initialization noticed by static analyser. 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 b5f6edba9d5a6..501f6afd60607 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -17443,7 +17443,6 @@ class HorizontalReduction {
// Iterate through all not-vectorized reduction values/extra arguments.
bool InitStep = true;
while (ExtraReductions.size() > 1) {
- VectorizedTree = ExtraReductions.front().second;
SmallVector<std::pair<Instruction *, Value *>> NewReds =
FinalGen(ExtraReductions, InitStep);
ExtraReductions.swap(NewReds);
More information about the llvm-commits
mailing list