aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-09-01 12:10:36 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-09-01 12:10:36 +0000
commit4f863d75f4d86b95d7c86bb2f5b0a028486cc545 (patch)
treeeb08c4cf58acf260c40cbbe8efca9b8847890fcf /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent9eb6a1025147d2d8f1c5cf90bff7a4fdc2916424 (diff)
downloadllvm-4f863d75f4d86b95d7c86bb2f5b0a028486cc545.zip
llvm-4f863d75f4d86b95d7c86bb2f5b0a028486cc545.tar.gz
llvm-4f863d75f4d86b95d7c86bb2f5b0a028486cc545.tar.bz2
Add an optional parameter with a list of undefs to extendToIndices
Reapply r280268, hopefully in a version that MSVC likes. llvm-svn: 280358
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-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 ba34d76..a312276 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,