Minor code simplification.
authorDan Gohman <gohman@apple.com>
Thu, 27 Aug 2009 17:59:08 +0000 (17:59 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 27 Aug 2009 17:59:08 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80266 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopInfo.h

index d4dd412d2c42702fef9ca24923b348ffb6ba618c..b8617c134e4ab3bc030ef2f04f3ecddaceb07b52 100644 (file)
@@ -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