This code doesn't actually use the ExitingBlocks list.
authorDan Gohman <gohman@apple.com>
Thu, 12 Feb 2009 16:36:26 +0000 (16:36 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 12 Feb 2009 16:36:26 +0000 (16:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64376 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LICM.cpp

index b5d5bfda6f4288a9ef08116a550aaef52d393d68..b2c895f48697ad1e9448dbda2a2064f4d31bc198 100644 (file)
@@ -785,9 +785,6 @@ void LICM::FindPromotableValuesInLoop(
                              std::map<Value*, AllocaInst*> &ValueToAllocaMap) {
   Instruction *FnStart = CurLoop->getHeader()->getParent()->begin()->begin();
 
-  SmallVector<BasicBlock*, 4> ExitingBlocks;
-  CurLoop->getExitingBlocks(ExitingBlocks);
-
   // Loop over all of the alias sets in the tracker object.
   for (AliasSetTracker::iterator I = CurAST->begin(), E = CurAST->end();
        I != E; ++I) {