mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
* RegisterAllocation _uses_ LiveVar analysis, instead of creating it's own copy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9adb7ad457
commit
4d7fc119b8
@ -48,10 +48,7 @@ namespace {
|
||||
cerr << "\n******************** Method "<< M->getName()
|
||||
<< " ********************\n";
|
||||
|
||||
MethodLiveVarInfo LVI(M); // Analyze live varaibles
|
||||
LVI.analyze();
|
||||
|
||||
PhyRegAlloc PRA(M, Target, &LVI,
|
||||
PhyRegAlloc PRA(M, Target, &getAnalysis<MethodLiveVarInfo>(),
|
||||
&getAnalysis<cfg::LoopInfo>());
|
||||
PRA.allocateRegisters();
|
||||
|
||||
@ -63,6 +60,7 @@ namespace {
|
||||
Pass::AnalysisSet &Destroyed,
|
||||
Pass::AnalysisSet &Provided) {
|
||||
Requires.push_back(cfg::LoopInfo::ID);
|
||||
Requires.push_back(MethodLiveVarInfo::ID);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -48,10 +48,7 @@ namespace {
|
||||
cerr << "\n******************** Method "<< M->getName()
|
||||
<< " ********************\n";
|
||||
|
||||
MethodLiveVarInfo LVI(M); // Analyze live varaibles
|
||||
LVI.analyze();
|
||||
|
||||
PhyRegAlloc PRA(M, Target, &LVI,
|
||||
PhyRegAlloc PRA(M, Target, &getAnalysis<MethodLiveVarInfo>(),
|
||||
&getAnalysis<cfg::LoopInfo>());
|
||||
PRA.allocateRegisters();
|
||||
|
||||
@ -63,6 +60,7 @@ namespace {
|
||||
Pass::AnalysisSet &Destroyed,
|
||||
Pass::AnalysisSet &Provided) {
|
||||
Requires.push_back(cfg::LoopInfo::ID);
|
||||
Requires.push_back(MethodLiveVarInfo::ID);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user