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/Transforms/Scalar/LoopUnrollPass.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/Transforms/Scalar/LoopUnrollPass.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp index 849854f11f7..56ae5c01041 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp @@ -131,7 +131,7 @@ namespace { bool UserAllowPartial; bool UserRuntime; - bool runOnLoop(Loop *L, LPPassManager &LPM) override; + bool runOnLoop(Loop *L, LPPassManager &) override; /// This transformation requires natural loop information & requires that /// loop preheaders be inserted into the CFG... @@ -886,7 +886,7 @@ unsigned LoopUnroll::selectUnrollCount( return Count; } -bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) { +bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &) { if (skipOptnoneFunction(L)) return false; @@ -1081,7 +1081,7 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) { // Unroll the loop. if (!UnrollLoop(L, Count, TripCount, AllowRuntime, UP.AllowExpensiveTripCount, - TripMultiple, LI, SE, &DT, &AC, PreserveLCSSA, &LPM)) + TripMultiple, LI, SE, &DT, &AC, PreserveLCSSA)) return false; return true; |