diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-10-22 21:31:34 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-10-22 21:31:34 +0000 |
commit | f98df7a0d138326f4aaf3e438a18b9b5c1ab291b (patch) | |
tree | 609c0c3c1743f7480f3b79a74c8512380dc7f745 /llvm/lib/Analysis/LoopPass.cpp | |
parent | 45a4014a503489e27bd7d0019873fde658be8ba0 (diff) | |
download | bcm5719-llvm-f98df7a0d138326f4aaf3e438a18b9b5c1ab291b.tar.gz bcm5719-llvm-f98df7a0d138326f4aaf3e438a18b9b5c1ab291b.zip |
LoopPass: Remove redoLoop, it isn't used. NFC
In r251064 I removed a logically unreachable call to `redoLoop`, and
now there aren't any callers of this API at all. Remove the needless
complexity.
llvm-svn: 251067
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index d4c301cce1b..d42425d753e 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -67,7 +67,6 @@ char LPPassManager::ID = 0; LPPassManager::LPPassManager() : FunctionPass(ID), PMDataManager() { skipThisLoop = false; - redoThisLoop = false; LI = nullptr; CurrentLoop = nullptr; } @@ -126,14 +125,6 @@ Loop &LPPassManager::addLoop(Loop *ParentLoop) { return *L; } -// Reoptimize this loop. LPPassManager will re-insert this loop into the -// queue. This allows LoopPass to change loop nest for the loop. This -// utility may send LPPassManager into infinite loops so use caution. -void LPPassManager::redoLoop(Loop *L) { - assert (CurrentLoop == L && "Can redo only CurrentLoop"); - redoThisLoop = true; -} - /// cloneBasicBlockSimpleAnalysis - Invoke cloneBasicBlockAnalysis hook for /// all loop passes. void LPPassManager::cloneBasicBlockSimpleAnalysis(BasicBlock *From, @@ -223,7 +214,6 @@ bool LPPassManager::runOnFunction(Function &F) { CurrentLoop = LQ.back(); skipThisLoop = false; - redoThisLoop = false; // Run all passes on the current Loop. for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) { @@ -288,9 +278,6 @@ bool LPPassManager::runOnFunction(Function &F) { // Pop the loop from queue after running all passes. LQ.pop_back(); - - if (redoThisLoop) - LQ.push_back(CurrentLoop); } // Finalization |