[llvm-commits] [llvm] r80266 - /llvm/trunk/include/llvm/Analysis/LoopInfo.h
Dan Gohman
gohman at apple.com
Thu Aug 27 10:59:09 PDT 2009
Author: djg
Date: Thu Aug 27 12:59:08 2009
New Revision: 80266
URL: http://llvm.org/viewvc/llvm-project?rev=80266&view=rev
Log:
Minor code simplification.
Modified:
llvm/trunk/include/llvm/Analysis/LoopInfo.h
Modified: llvm/trunk/include/llvm/Analysis/LoopInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopInfo.h?rev=80266&r1=80265&r2=80266&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LoopInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/LoopInfo.h Thu Aug 27 12:59:08 2009
@@ -781,11 +781,8 @@
// 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
More information about the llvm-commits
mailing list