summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2010-12-19 18:03:27 +0000
committerCameron Zwarich <zwarich@apple.com>2010-12-19 18:03:27 +0000
commit713ab3796512498b5f4e6ed79ea2ff4e6aa8df9b (patch)
treef88b873d791fae693250cd39a9cbe7e6a0879849 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
parentf29562db25102c42a9eab1dc8515a36aea3cc78f (diff)
downloadbcm5719-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/TwoAddressInstructionPass.cpp')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index d74d2da6b77..c526e960123 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -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);
}
OpenPOWER on IntegriCloud