summaryrefslogtreecommitdiff
path: root/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
commitd959da92a5a479c7f8f4ccbf7a7e3fb87f9fda0c (patch)
tree4fe4b95c5f28177d09e7bfbd86cbd09842d9a13a /lib/CodeGen/TwoAddressInstructionPass.cpp
parent368397bb7de8318a4663fec846bda714ae78dd7a (diff)
downloadllvm-d959da92a5a479c7f8f4ccbf7a7e3fb87f9fda0c.tar.gz
llvm-d959da92a5a479c7f8f4ccbf7a7e3fb87f9fda0c.tar.bz2
llvm-d959da92a5a479c7f8f4ccbf7a7e3fb87f9fda0c.tar.xz
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
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index d74d2da6b7..c526e96012 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/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);
}