LPM: Make callers of LPM.deleteLoopFromQueue update LoopInfo directly. NFC
[oota-llvm.git] / lib / Analysis / LoopPass.cpp
index 54b61256134cd6ced0a21062027818473df619af..dc424734dd5661dcc8f1fccd3c88afb7017198a8 100644 (file)
@@ -62,12 +62,6 @@ LPPassManager::LPPassManager()
   CurrentLoop = nullptr;
 }
 
-/// Delete loop from the loop queue and loop hierarchy (LoopInfo).
-void LPPassManager::deleteLoopFromQueue(Loop *L) {
-  assert(CurrentLoop == L && "deleting a loop that is not being operated on");
-  LI->updateUnloop(L);
-}
-
 // Inset loop into loop nest (LoopInfo) and loop queue (LQ).
 Loop &LPPassManager::addLoop(Loop *ParentLoop) {
   // Create a new loop. LI will take ownership.