diff options
| -rw-r--r-- | lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index d0e3fe2..6837e51 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/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; |
