summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-20 18:00:57 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-20 18:00:57 +0000
commit7824152557cfe3a366963f504b2b956f853ebc3a (patch)
tree0fadd2f553285f1dececdda3a7c47bc3ddfd8aff /include/llvm/CodeGen/LiveIntervalAnalysis.h
parentb47f3ea22461b2d877d4a3246d54bdeab4fcfaa3 (diff)
downloadllvm-7824152557cfe3a366963f504b2b956f853ebc3a.tar.gz
llvm-7824152557cfe3a366963f504b2b956f853ebc3a.tar.bz2
llvm-7824152557cfe3a366963f504b2b956f853ebc3a.tar.xz
Only update regunit live ranges that have been precomputed.
Regunit live ranges are computed on demand, so when mi-sched calls handleMove, some regunits may not have live ranges yet. That makes updating them easier: Just skip the non-existing ranges. They will be computed correctly from the rescheduled machine code when they are needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index bd3604c429..bb547c3519 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -347,6 +347,12 @@ namespace llvm {
return *LI;
}
+ /// getCachedRegUnit - Return the live range for Unit if it has already
+ /// been computed, or NULL if it hasn't been computed yet.
+ LiveInterval *getCachedRegUnit(unsigned Unit) {
+ return RegUnitIntervals[Unit];
+ }
+
/// trackingRegUnits - Does LiveIntervals curently track register units?
/// This function will be removed when regunit tracking is permanently
/// enabled.