aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-01-04 21:08:44 +0000
committerNadav Rotem <nrotem@apple.com>2013-01-04 21:08:44 +0000
commit608467d1e1b318220307143d3af81f31cd7a18f8 (patch)
treef6cc514efd9bce52ced356d8e5f575afcee03eac /lib/Transforms/Vectorize/LoopVectorize.cpp
parentdd30b471750aca5c652873f9a8972df162b7e5eb (diff)
Fix a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 0f84fe05ef..4e508988e3 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2283,8 +2283,8 @@ LoopVectorizationCostModel::calculateRegisterUsage() {
// Remove all of the instructions that end at this location.
InstrList &List = TransposeEnds[i];
- for (unsigned int i=0, e = List.size(); i < e; ++i)
- OpenIntervals.erase(List[i]);
+ for (unsigned int j=0, e = List.size(); j < e; ++j)
+ OpenIntervals.erase(List[j]);
// Count the number of live interals.
MaxUsage = std::max(MaxUsage, OpenIntervals.size());