diff options
| author | Cameron Zwarich <zwarich@apple.com> | 2010-12-19 18:03:27 +0000 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@apple.com> | 2010-12-19 18:03:27 +0000 |
| commit | 713ab3796512498b5f4e6ed79ea2ff4e6aa8df9b (patch) | |
| tree | f88b873d791fae693250cd39a9cbe7e6a0879849 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | |
| parent | f29562db25102c42a9eab1dc8515a36aea3cc78f (diff) | |
| download | bcm5719-llvm-713ab3796512498b5f4e6ed79ea2ff4e6aa8df9b.tar.gz bcm5719-llvm-713ab3796512498b5f4e6ed79ea2ff4e6aa8df9b.zip | |
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
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index 993f5feb5f9..d15bf6649ce 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -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); } |

