mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
368397bb7d
commit
d959da92a5
@ -107,10 +107,8 @@ namespace {
|
||||
AU.addPreserved<LiveStacks>();
|
||||
AU.addPreserved<RegisterCoalescer>();
|
||||
AU.addPreserved<CalculateSpillWeights>();
|
||||
if (StrongPHIElim)
|
||||
AU.addPreservedID(StrongPHIEliminationID);
|
||||
else
|
||||
AU.addPreservedID(PHIEliminationID);
|
||||
AU.addPreservedID(StrongPHIEliminationID);
|
||||
AU.addPreservedID(PHIEliminationID);
|
||||
AU.addRequired<MachineDominatorTree>();
|
||||
AU.addRequired<MachineLoopInfo>();
|
||||
AU.addRequired<VirtRegMap>();
|
||||
|
@ -93,10 +93,8 @@ void SimpleRegisterCoalescing::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addRequired<MachineLoopInfo>();
|
||||
AU.addPreserved<MachineLoopInfo>();
|
||||
AU.addPreservedID(MachineDominatorsID);
|
||||
if (StrongPHIElim)
|
||||
AU.addPreservedID(StrongPHIEliminationID);
|
||||
else
|
||||
AU.addPreservedID(PHIEliminationID);
|
||||
AU.addPreservedID(StrongPHIEliminationID);
|
||||
AU.addPreservedID(PHIEliminationID);
|
||||
AU.addPreservedID(TwoAddressInstructionPassID);
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
@ -148,10 +148,8 @@ namespace {
|
||||
AU.addPreserved<LiveVariables>();
|
||||
AU.addPreservedID(MachineLoopInfoID);
|
||||
AU.addPreservedID(MachineDominatorsID);
|
||||
if (StrongPHIElim)
|
||||
AU.addPreservedID(StrongPHIEliminationID);
|
||||
else
|
||||
AU.addPreservedID(PHIEliminationID);
|
||||
AU.addPreservedID(StrongPHIEliminationID);
|
||||
AU.addPreservedID(PHIEliminationID);
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user