summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-12-10 01:12:10 +0000
committerMatthias Braun <matze@braunis.de>2014-12-10 01:12:10 +0000
commit3f1d8fdd33af8241bbd0ee0a2fa9d0d31eccd787 (patch)
tree67ffd6bed551e905735922c09ba298459cfd092c /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parente62c2070927f1304d9bfa17fb5084b01acf5e68b (diff)
downloadbcm5719-llvm-3f1d8fdd33af8241bbd0ee0a2fa9d0d31eccd787.tar.gz
bcm5719-llvm-3f1d8fdd33af8241bbd0ee0a2fa9d0d31eccd787.zip
LiveInterval: Add support to track liveness of subregisters.
This code adds the required data structures. Algorithms to compute it follow. llvm-svn: 223877
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 1742e63b0df..d07d3cc3a8a 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -767,6 +767,8 @@ public:
continue;
if (TargetRegisterInfo::isVirtualRegister(Reg)) {
LiveInterval &LI = LIS.getInterval(Reg);
+ // TODO: handle subranges instead of dropping them
+ LI.clearSubRanges();
updateRange(LI, Reg);
continue;
}
OpenPOWER on IntegriCloud