summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-03-29 18:48:42 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-03-29 18:48:42 +0000
commit2080ecd107df9ef67e53256a11c9b812e9905797 (patch)
treed2c78347141a1f81bb9552a9b29bb3ae86b29233 /llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
parent9cb970074fb76f3507b0b97ef371308f3c384042 (diff)
downloadbcm5719-llvm-2080ecd107df9ef67e53256a11c9b812e9905797.tar.gz
bcm5719-llvm-2080ecd107df9ef67e53256a11c9b812e9905797.zip
Fix loop style
llvm-svn: 178355
Diffstat (limited to 'llvm/lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/MemoryDependenceAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
index 57bce84e833..2240e9de33e 100644
--- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
@@ -1136,7 +1136,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
// Make sure to clean up the Visited map before continuing on to
// PredTranslationFailure.
- for (unsigned i = 0; i < PredList.size(); i++)
+ for (unsigned i = 0, n = PredList.size(); i < n; ++i)
Visited.erase(PredList[i].first);
goto PredTranslationFailure;
@@ -1148,7 +1148,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
// any results for. (getNonLocalPointerDepFromBB will modify our
// datastructures in ways the code after the PredTranslationFailure label
// doesn't expect.)
- for (unsigned i = 0; i < PredList.size(); i++) {
+ for (unsigned i = 0, n = PredList.size(); i < n; ++i) {
BasicBlock *Pred = PredList[i].first;
PHITransAddr &PredPointer = PredList[i].second;
Value *PredPtrVal = PredPointer.getAddr();
OpenPOWER on IntegriCloud