summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-08-31 18:02:19 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-08-31 18:02:19 +0000
commit576225daf5f0c85183369a86ab1be01455c383bc (patch)
treed4309422aaa4c00a60fce73ca561da47eb3ecfed /llvm/lib
parent9d0c945ad6de0aa94d40e48f9cd6a5622fa814f9 (diff)
downloadbcm5719-llvm-576225daf5f0c85183369a86ab1be01455c383bc.tar.gz
bcm5719-llvm-576225daf5f0c85183369a86ab1be01455c383bc.zip
Add an optional parameter with a list of undefs to extendToIndices
llvm-svn: 280268
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index ba34d7682fe..a3122763806 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -568,11 +568,12 @@ void LiveIntervals::shrinkToUses(LiveInterval::SubRange &SR, unsigned Reg) {
}
void LiveIntervals::extendToIndices(LiveRange &LR,
- ArrayRef<SlotIndex> Indices) {
+ ArrayRef<SlotIndex> Indices,
+ ArrayRef<SlotIndex> Undefs) {
assert(LRCalc && "LRCalc not initialized.");
LRCalc->reset(MF, getSlotIndexes(), DomTree, &getVNInfoAllocator());
for (unsigned i = 0, e = Indices.size(); i != e; ++i)
- LRCalc->extend(LR, Indices[i], /*PhysReg=*/0, /*Undefs=*/{});
+ LRCalc->extend(LR, Indices[i], /*PhysReg=*/0, Undefs);
}
void LiveIntervals::pruneValue(LiveRange &LR, SlotIndex Kill,
OpenPOWER on IntegriCloud