mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Now LoopUnswitch is a LoopPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34992 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -132,7 +132,7 @@ void LPPassManager::insertLoop(Loop *L, Loop *ParentLoop) {
|
||||
// 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");
|
||||
assert (CurrentLoop == L && "Can redo only CurrentLoop");
|
||||
redoThisLoop = true;
|
||||
}
|
||||
|
||||
@@ -279,6 +279,7 @@ void LoopPass::assignPassManager(PMStack &PMS,
|
||||
|
||||
// [1] Create new Call Graph Pass Manager
|
||||
LPPM = new LPPassManager(PMD->getDepth() + 1);
|
||||
LPPM->populateInheritedAnalysis(PMS);
|
||||
|
||||
// [2] Set up new manager's top level manager
|
||||
PMTopLevelManager *TPM = PMD->getTopLevelManager();
|
||||
|
Reference in New Issue
Block a user