summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-10-07 20:22:28 +0000
committerOwen Anderson <resistor@mac.com>2008-10-07 20:22:28 +0000
commit1d338fc6a4c6f2711d90350ce18e8cdff58be7eb (patch)
tree4966ca489f4e1c1325bdc8fc6c55614828b95d1f /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parentc084e840280e5ac7ac7bf33711ad7a923d6183cc (diff)
downloadbcm5719-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/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index 7291e12bbea..31e47f96b4c 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -26,6 +26,7 @@
#include "llvm/CodeGen/RegisterCoalescer.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetMachine.h"
+#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/ADT/EquivalenceClasses.h"
#include "llvm/ADT/Statistic.h"
@@ -107,6 +108,8 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<LiveIntervals>();
+ if (StrongPHIElim)
+ AU.addRequiredID(StrongPHIEliminationID);
// Make sure PassManager knows which analyses to make available
// to coalescing and which analyses coalescing invalidates.
AU.addRequiredTransitive<RegisterCoalescer>();
OpenPOWER on IntegriCloud