summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-12-05 21:37:47 +0000
committerAndrew Trick <atrick@apple.com>2012-12-05 21:37:47 +0000
commitf54f61538688eff25f392c2062b3a654394333aa (patch)
tree540a489820973c87cdd920081d637f095388ef96 /include/llvm/CodeGen/LiveIntervalAnalysis.h
parent553c42cefc9abe1f10ee33d34a12498b8ac12fe6 (diff)
downloadllvm-f54f61538688eff25f392c2062b3a654394333aa.tar.gz
llvm-f54f61538688eff25f392c2062b3a654394333aa.tar.bz2
llvm-f54f61538688eff25f392c2062b3a654394333aa.tar.xz
RegisterPressureTracker: unify virtual registers and physical regunits.
Now that live register units are tracked individually, the code can be simplified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index 367f6d0bbb..9e89519b28 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -347,6 +347,10 @@ namespace llvm {
return RegUnitIntervals[Unit];
}
+ const LiveInterval *getCachedRegUnit(unsigned Unit) const {
+ return RegUnitIntervals[Unit];
+ }
+
private:
/// computeIntervals - Compute live intervals.
void computeIntervals();