diff options
author | Owen Anderson <resistor@mac.com> | 2008-10-07 20:22:28 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-10-07 20:22:28 +0000 |
commit | 1d338fc6a4c6f2711d90350ce18e8cdff58be7eb (patch) | |
tree | 4966ca489f4e1c1325bdc8fc6c55614828b95d1f /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | c084e840280e5ac7ac7bf33711ad7a923d6183cc (diff) | |
download | bcm5719-llvm-1d338fc6a4c6f2711d90350ce18e8cdff58be7eb.tar.gz bcm5719-llvm-1d338fc6a4c6f2711d90350ce18e8cdff58be7eb.zip |
Add an option to enable StrongPHIElimination, for ease of testing.
llvm-svn: 57259
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 98ff22ce6e0..ff247ad4597 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -30,6 +30,7 @@ #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" +#include "llvm/Target/TargetOptions.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" #include "llvm/ADT/Statistic.h" @@ -67,8 +68,12 @@ void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LiveVariables>(); AU.addPreservedID(MachineLoopInfoID); AU.addPreservedID(MachineDominatorsID); - AU.addPreservedID(PHIEliminationID); - AU.addRequiredID(PHIEliminationID); + + if (!StrongPHIElim) { + AU.addPreservedID(PHIEliminationID); + AU.addRequiredID(PHIEliminationID); + } + AU.addRequiredID(TwoAddressInstructionPassID); MachineFunctionPass::getAnalysisUsage(AU); } |