mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00:00
Update PBQP's analysis usage to reflect the requirements of the inline spiller.
llvm-svn: 145893
This commit is contained in:
parent
70dd1f98af
commit
29572733bb
@ -37,10 +37,12 @@
|
|||||||
#include "Splitter.h"
|
#include "Splitter.h"
|
||||||
#include "VirtRegMap.h"
|
#include "VirtRegMap.h"
|
||||||
#include "RegisterCoalescer.h"
|
#include "RegisterCoalescer.h"
|
||||||
|
#include "llvm/Analysis/AliasAnalysis.h"
|
||||||
#include "llvm/CodeGen/CalcSpillWeights.h"
|
#include "llvm/CodeGen/CalcSpillWeights.h"
|
||||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||||
#include "llvm/CodeGen/LiveStackAnalysis.h"
|
#include "llvm/CodeGen/LiveStackAnalysis.h"
|
||||||
#include "llvm/CodeGen/RegAllocPBQP.h"
|
#include "llvm/CodeGen/RegAllocPBQP.h"
|
||||||
|
#include "llvm/CodeGen/MachineDominators.h"
|
||||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||||
#include "llvm/CodeGen/MachineLoopInfo.h"
|
#include "llvm/CodeGen/MachineLoopInfo.h"
|
||||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||||
@ -444,6 +446,9 @@ void PBQPBuilderWithCoalescing::addVirtRegCoalesce(
|
|||||||
|
|
||||||
|
|
||||||
void RegAllocPBQP::getAnalysisUsage(AnalysisUsage &au) const {
|
void RegAllocPBQP::getAnalysisUsage(AnalysisUsage &au) const {
|
||||||
|
au.setPreservesCFG();
|
||||||
|
au.addRequired<AliasAnalysis>();
|
||||||
|
au.addPreserved<AliasAnalysis>();
|
||||||
au.addRequired<SlotIndexes>();
|
au.addRequired<SlotIndexes>();
|
||||||
au.addPreserved<SlotIndexes>();
|
au.addPreserved<SlotIndexes>();
|
||||||
au.addRequired<LiveIntervals>();
|
au.addRequired<LiveIntervals>();
|
||||||
@ -454,6 +459,8 @@ void RegAllocPBQP::getAnalysisUsage(AnalysisUsage &au) const {
|
|||||||
au.addRequired<CalculateSpillWeights>();
|
au.addRequired<CalculateSpillWeights>();
|
||||||
au.addRequired<LiveStacks>();
|
au.addRequired<LiveStacks>();
|
||||||
au.addPreserved<LiveStacks>();
|
au.addPreserved<LiveStacks>();
|
||||||
|
au.addRequired<MachineDominatorTree>();
|
||||||
|
au.addPreserved<MachineDominatorTree>();
|
||||||
au.addRequired<MachineLoopInfo>();
|
au.addRequired<MachineLoopInfo>();
|
||||||
au.addPreserved<MachineLoopInfo>();
|
au.addPreserved<MachineLoopInfo>();
|
||||||
if (pbqpPreSplitting)
|
if (pbqpPreSplitting)
|
||||||
|
Loading…
Reference in New Issue
Block a user