LPM: Make callers of LPM.deleteLoopFromQueue update LoopInfo directly. NFC
authorJustin Bogner <mail@justinbogner.com>
Wed, 16 Dec 2015 18:40:20 +0000 (18:40 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 16 Dec 2015 18:40:20 +0000 (18:40 +0000)
commit50776d0d9ec9bc3c9d806858f36de9b4193ba399
treee4d8b34049dd233fd19e191c7d8e8c0f08286df7
parentb11dd505090236a115822ea550a341a607bd04da
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255797 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopPass.h
include/llvm/Transforms/Utils/UnrollLoop.h
lib/Analysis/LoopPass.cpp
lib/Transforms/IPO/LoopExtractor.cpp
lib/Transforms/Scalar/LoopDeletion.cpp
lib/Transforms/Scalar/LoopUnrollPass.cpp
lib/Transforms/Utils/LoopUnroll.cpp