From 576225daf5f0c85183369a86ab1be01455c383bc Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 31 Aug 2016 18:02:19 +0000 Subject: Add an optional parameter with a list of undefs to extendToIndices llvm-svn: 280268 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib') 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 Indices) { + ArrayRef Indices, + ArrayRef 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, -- cgit v1.2.3