forked from OSchip/llvm-project
[NFC][regalloc] Move evict advisor initialization before VRAI
This is because a subsequent patch will propose obtaining the VRAI from the advisor, which will enable feature caching for the ML advisor, for better compile time. Making this change first as it's both innocuous and keeps the future patch to be reviewed small.
This commit is contained in:
parent
0fd5f6964d
commit
d46305e22d
|
@ -2922,6 +2922,10 @@ bool RAGreedy::runOnMachineFunction(MachineFunction &mf) {
|
|||
|
||||
RegCosts = TRI->getRegisterCosts(*MF);
|
||||
|
||||
ExtraInfo.emplace();
|
||||
EvictAdvisor =
|
||||
getAnalysis<RegAllocEvictionAdvisorAnalysis>().getAdvisor(*MF, *this);
|
||||
|
||||
VRAI = std::make_unique<VirtRegAuxInfo>(*MF, *LIS, *VRM, *Loops, *MBFI);
|
||||
SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM, *VRAI));
|
||||
|
||||
|
@ -2931,9 +2935,7 @@ bool RAGreedy::runOnMachineFunction(MachineFunction &mf) {
|
|||
|
||||
SA.reset(new SplitAnalysis(*VRM, *LIS, *Loops));
|
||||
SE.reset(new SplitEditor(*SA, *AA, *LIS, *VRM, *DomTree, *MBFI, *VRAI));
|
||||
ExtraInfo.emplace();
|
||||
EvictAdvisor =
|
||||
getAnalysis<RegAllocEvictionAdvisorAnalysis>().getAdvisor(*MF, *this);
|
||||
|
||||
IntfCache.init(MF, Matrix->getLiveUnions(), Indexes, LIS, TRI);
|
||||
GlobalCand.resize(32); // This will grow as needed.
|
||||
SetOfBrokenHints.clear();
|
||||
|
|
Loading…
Reference in New Issue