From 883a3ea67f5f64f08fefe62f9430ea7e3b665fa1 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 16 Dec 2015 18:40:20 +0000 Subject: LPM: Make callers of LPM.deleteLoopFromQueue update LoopInfo directly. NFC As of r255720, the loop pass manager will DTRT when passes update the loop info for removed loops, so they no longer need to reach into LPPassManager APIs to do this kind of transformation. This change very nearly removes the need for the LPPassManager to even be passed into loop passes - the only remaining pass that uses the LPM argument is LoopUnswitch. llvm-svn: 255797 --- llvm/lib/Analysis/LoopPass.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'llvm/lib/Analysis/LoopPass.cpp') diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index 54b61256134..dc424734dd5 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -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. -- cgit v1.2.3