mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Remove some checks for StrongPHIElim. These checks make it impossible to use an
alternative register allocator that does not require LiveIntervals by specifying it on the command-line for a target that has StrongPHIElimination enabled by default. These checks are pretty meaningless anyways, since StrongPHIElimination and PHIElimination are never used at the same time. llvm-svn: 122176
This commit is contained in:
parent
c7876edb16
commit
163792fb1f
@ -107,10 +107,8 @@ namespace {
|
|||||||
AU.addPreserved<LiveStacks>();
|
AU.addPreserved<LiveStacks>();
|
||||||
AU.addPreserved<RegisterCoalescer>();
|
AU.addPreserved<RegisterCoalescer>();
|
||||||
AU.addPreserved<CalculateSpillWeights>();
|
AU.addPreserved<CalculateSpillWeights>();
|
||||||
if (StrongPHIElim)
|
AU.addPreservedID(StrongPHIEliminationID);
|
||||||
AU.addPreservedID(StrongPHIEliminationID);
|
AU.addPreservedID(PHIEliminationID);
|
||||||
else
|
|
||||||
AU.addPreservedID(PHIEliminationID);
|
|
||||||
AU.addRequired<MachineDominatorTree>();
|
AU.addRequired<MachineDominatorTree>();
|
||||||
AU.addRequired<MachineLoopInfo>();
|
AU.addRequired<MachineLoopInfo>();
|
||||||
AU.addRequired<VirtRegMap>();
|
AU.addRequired<VirtRegMap>();
|
||||||
|
@ -93,10 +93,8 @@ void SimpleRegisterCoalescing::getAnalysisUsage(AnalysisUsage &AU) const {
|
|||||||
AU.addRequired<MachineLoopInfo>();
|
AU.addRequired<MachineLoopInfo>();
|
||||||
AU.addPreserved<MachineLoopInfo>();
|
AU.addPreserved<MachineLoopInfo>();
|
||||||
AU.addPreservedID(MachineDominatorsID);
|
AU.addPreservedID(MachineDominatorsID);
|
||||||
if (StrongPHIElim)
|
AU.addPreservedID(StrongPHIEliminationID);
|
||||||
AU.addPreservedID(StrongPHIEliminationID);
|
AU.addPreservedID(PHIEliminationID);
|
||||||
else
|
|
||||||
AU.addPreservedID(PHIEliminationID);
|
|
||||||
AU.addPreservedID(TwoAddressInstructionPassID);
|
AU.addPreservedID(TwoAddressInstructionPassID);
|
||||||
MachineFunctionPass::getAnalysisUsage(AU);
|
MachineFunctionPass::getAnalysisUsage(AU);
|
||||||
}
|
}
|
||||||
|
@ -148,10 +148,8 @@ namespace {
|
|||||||
AU.addPreserved<LiveVariables>();
|
AU.addPreserved<LiveVariables>();
|
||||||
AU.addPreservedID(MachineLoopInfoID);
|
AU.addPreservedID(MachineLoopInfoID);
|
||||||
AU.addPreservedID(MachineDominatorsID);
|
AU.addPreservedID(MachineDominatorsID);
|
||||||
if (StrongPHIElim)
|
AU.addPreservedID(StrongPHIEliminationID);
|
||||||
AU.addPreservedID(StrongPHIEliminationID);
|
AU.addPreservedID(PHIEliminationID);
|
||||||
else
|
|
||||||
AU.addPreservedID(PHIEliminationID);
|
|
||||||
MachineFunctionPass::getAnalysisUsage(AU);
|
MachineFunctionPass::getAnalysisUsage(AU);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user