[llvm] r295826 - [SLP] Remove unused initial value from the variable, NFC.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 04:57:59 PST 2017


Author: abataev
Date: Wed Feb 22 06:57:58 2017
New Revision: 295826

URL: http://llvm.org/viewvc/llvm-project?rev=295826&view=rev
Log:
[SLP] Remove unused initial value from the variable, NFC.

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

Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=295826&r1=295825&r2=295826&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Wed Feb 22 06:57:58 2017
@@ -4614,7 +4614,7 @@ static bool findBuildVector(InsertElemen
 static bool findBuildAggregate(InsertValueInst *IV,
                                SmallVectorImpl<Value *> &BuildVector,
                                SmallVectorImpl<Value *> &BuildVectorOpds) {
-  Value *V = nullptr;
+  Value *V;
   do {
     BuildVector.push_back(IV);
     BuildVectorOpds.push_back(IV->getInsertedValueOperand());




More information about the llvm-commits mailing list