diff options
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index d0e3fe2d0b6..6837e51c9a6 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -872,8 +872,8 @@ bool FuncSLP::vectorizeStoreChain(ArrayRef<Value *> Chain, int CostThreshold) { vectorizeTree(Operands); // Remove the scalar stores. - for (int i = 0, e = VF; i < e; ++i) - cast<Instruction>(Operands[i])->eraseFromParent(); + for (int j = 0, e = VF; j < e; ++j) + cast<Instruction>(Operands[j])->eraseFromParent(); // Move to the next bundle. i += VF - 1; |