diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-12-16 18:40:20 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-12-16 18:40:20 +0000 |
commit | 883a3ea67f5f64f08fefe62f9430ea7e3b665fa1 (patch) | |
tree | f7e949d42bdaceddf268f113fac5cf0f5d63c2da /llvm/lib/Analysis/LoopPass.cpp | |
parent | e05ff151866610c53a8730a51a5cabef3cc09138 (diff) | |
download | bcm5719-llvm-883a3ea67f5f64f08fefe62f9430ea7e3b665fa1.tar.gz bcm5719-llvm-883a3ea67f5f64f08fefe62f9430ea7e3b665fa1.zip |
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
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
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. |