diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-27 17:59:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-27 17:59:08 +0000 |
commit | a578538e9fde98cb05ce9740d7c63aafbd1c69f4 (patch) | |
tree | da9f2d8a8ca5d9abdd5dc99496e117d3c8d00d7f | |
parent | c99596ddbf78116260c177edcfad9261bf186b68 (diff) | |
download | external_llvm-a578538e9fde98cb05ce9740d7c63aafbd1c69f4.zip external_llvm-a578538e9fde98cb05ce9740d7c63aafbd1c69f4.tar.gz external_llvm-a578538e9fde98cb05ce9740d7c63aafbd1c69f4.tar.bz2 |
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80266 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index d4dd412..b8617c1 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -781,11 +781,8 @@ public: // loop can be found for them. // for (typename std::vector<BlockT*>::iterator I = L->Blocks.begin(), - E = L->Blocks.end(); I != E; ++I) { - typename std::map<BlockT*, LoopT *>::iterator BBMI = BBMap.find(*I); - if (BBMI == BBMap.end()) // Not in map yet... - BBMap.insert(BBMI, std::make_pair(*I, L)); // Must be at this level - } + E = L->Blocks.end(); I != E; ++I) + BBMap.insert(std::make_pair(*I, L)); // Now that we have a list of all of the child loops of this loop, check to // see if any of them should actually be nested inside of each other. We |