summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize
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
commit93bd30be9bc435fd47cb399386c7103672f6caaf (patch)
treea2c97eae455f01b11e97eccd06e427a749347011 /llvm/lib/Transforms/Vectorize
parente36b685a941e52371ff50c093444c444803f8ca8 (diff)
downloadbcm5719-llvm-93bd30be9bc435fd47cb399386c7103672f6caaf.tar.gz
bcm5719-llvm-93bd30be9bc435fd47cb399386c7103672f6caaf.zip
Fix a warning
llvm-svn: 171525
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 0f84fe05ef0..4e508988e33 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud