summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-03 22:12:54 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-03 22:12:54 +0000
commit1c465892908158b9fe05f873d940996469858307 (patch)
tree17fac5d6a0bee446d8f03f0528c43bb1ba57d10e /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent918999db958235516a9ef68fc78bbd2672f080b7 (diff)
downloadbcm5719-llvm-1c465892908158b9fe05f873d940996469858307.tar.gz
bcm5719-llvm-1c465892908158b9fe05f873d940996469858307.zip
Add an experimental -early-live-intervals option.
This option runs LiveIntervals before TwoAddressInstructionPass which will eventually learn to exploit and update the analysis. Eventually, LiveIntervals will run before PHIElimination, and we can get rid of LiveVariables. llvm-svn: 161270
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index b488e8f077e..d0f8ae1af30 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -45,6 +45,7 @@ NewLiveIntervals("new-live-intervals", cl::Hidden,
cl::desc("Use new algorithm forcomputing live intervals"));
char LiveIntervals::ID = 0;
+char &llvm::LiveIntervalsID = LiveIntervals::ID;
INITIALIZE_PASS_BEGIN(LiveIntervals, "liveintervals",
"Live Interval Analysis", false, false)
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
OpenPOWER on IntegriCloud