summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-20 16:41:11 +0000
committerDan Gohman <gohman@apple.com>2010-05-20 16:41:11 +0000
commit981563d0baaa7108c3a5dc4c66d783bcc3282ab4 (patch)
treeab8bd11d56a6dcb2aa065cbeba3a681870a9a539 /llvm/lib
parente1c53f29d3c0afeb01b8b2c2a8b4c9e9d707f405 (diff)
downloadbcm5719-llvm-981563d0baaa7108c3a5dc4c66d783bcc3282ab4.tar.gz
bcm5719-llvm-981563d0baaa7108c3a5dc4c66d783bcc3282ab4.zip
Rename a variable to avoid shadowing.
llvm-svn: 104234
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index f648560e487..15751aaa714 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -2870,8 +2870,9 @@ void LSRInstance::NarrowSearchSpaceUsingHeuristics() {
for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) {
LSRUse &LU = Uses[LUIdx];
- for (size_t i = 0, e = LU.Formulae.size(); i != e; ++i) {
- Formula &F = LU.Formulae[i];
+ for (size_t FIdx = 0, NumForms = LU.Formulae.size();
+ FIdx != NumForms; ++FIdx) {
+ Formula &F = LU.Formulae[FIdx];
if (F.AM.BaseOffs != 0 && F.AM.Scale == 0) {
if (LSRUse *LUThatHas = FindUseWithSimilarFormula(F, LU)) {
if (reconcileNewOffset(*LUThatHas, F.AM.BaseOffs,
OpenPOWER on IntegriCloud