mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Revert "CalculateSpillWeights does not need to be a pass"
Temporarily revert my previous commit until I understand why it breaks 3 target tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194272 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -95,6 +95,7 @@ public:
|
||||
: MachineFunctionPass(ID), builder(b.take()), customPassID(cPassID) {
|
||||
initializeSlotIndexesPass(*PassRegistry::getPassRegistry());
|
||||
initializeLiveIntervalsPass(*PassRegistry::getPassRegistry());
|
||||
initializeCalculateSpillWeightsPass(*PassRegistry::getPassRegistry());
|
||||
initializeLiveStacksPass(*PassRegistry::getPassRegistry());
|
||||
initializeVirtRegMapPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
@@ -431,6 +432,7 @@ void RegAllocPBQP::getAnalysisUsage(AnalysisUsage &au) const {
|
||||
//au.addRequiredID(SplitCriticalEdgesID);
|
||||
if (customPassID)
|
||||
au.addRequiredID(*customPassID);
|
||||
au.addRequired<CalculateSpillWeights>();
|
||||
au.addRequired<LiveStacks>();
|
||||
au.addPreserved<LiveStacks>();
|
||||
au.addRequired<MachineBlockFrequencyInfo>();
|
||||
@@ -549,8 +551,6 @@ bool RegAllocPBQP::runOnMachineFunction(MachineFunction &MF) {
|
||||
lss = &getAnalysis<LiveStacks>();
|
||||
mbfi = &getAnalysis<MachineBlockFrequencyInfo>();
|
||||
|
||||
calculateSpillWeights(*lis, MF, getAnalysis<MachineLoopInfo>(), *mbfi);
|
||||
|
||||
vrm = &getAnalysis<VirtRegMap>();
|
||||
spiller.reset(createInlineSpiller(*this, MF, *vrm));
|
||||
|
||||
|
Reference in New Issue
Block a user