mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Change ET-Forest to automatically recalculate its DFSnum's if too many slow
queries are made. Patch by Daniel Berlin! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -104,7 +104,7 @@ void LoopInfo::releaseMemory() {
|
||||
}
|
||||
|
||||
|
||||
void LoopInfo::Calculate(const ETForest &EF) {
|
||||
void LoopInfo::Calculate(ETForest &EF) {
|
||||
BasicBlock *RootNode = EF.getRoot();
|
||||
|
||||
for (df_iterator<BasicBlock*> NI = df_begin(RootNode),
|
||||
@@ -135,7 +135,7 @@ static bool isNotAlreadyContainedIn(Loop *SubLoop, Loop *ParentLoop) {
|
||||
return isNotAlreadyContainedIn(SubLoop->getParentLoop(), ParentLoop);
|
||||
}
|
||||
|
||||
Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, const ETForest &EF) {
|
||||
Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, ETForest &EF) {
|
||||
if (BBMap.find(BB) != BBMap.end()) return 0; // Haven't processed this node?
|
||||
|
||||
std::vector<BasicBlock *> TodoStack;
|
||||
|
||||
Reference in New Issue
Block a user