[llvm] r295642 - [SLP] nullptr'ize initial value in `findBuildAggregate()`, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 20 00:04:11 PST 2017
Author: abataev
Date: Mon Feb 20 02:04:11 2017
New Revision: 295642
URL: http://llvm.org/viewvc/llvm-project?rev=295642&view=rev
Log:
[SLP] nullptr'ize initial value in `findBuildAggregate()`, NFC.
Initial value of V is sett nullptr, as it is not used.
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=295642&r1=295641&r2=295642&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Mon Feb 20 02:04:11 2017
@@ -4614,7 +4614,7 @@ static bool findBuildVector(InsertElemen
static bool findBuildAggregate(InsertValueInst *IV,
SmallVectorImpl<Value *> &BuildVector,
SmallVectorImpl<Value *> &BuildVectorOpds) {
- Value *V = IV;
+ Value *V = nullptr;
do {
BuildVector.push_back(IV);
BuildVectorOpds.push_back(IV->getInsertedValueOperand());
More information about the llvm-commits
mailing list