From: Matthias Braun Date: Wed, 24 Dec 2014 02:11:46 +0000 (+0000) Subject: LiveRangeEdit: Check for completely empy subranges after removing ValNos. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a2fd5b5fd0a60854e92d1d202d48d37fb16cef69;p=oota-llvm.git LiveRangeEdit: Check for completely empy subranges after removing ValNos. Completely empty subranges are not allowed and must be removed when subreg liveness is enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224804 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveRangeEdit.cpp b/lib/CodeGen/LiveRangeEdit.cpp index 765a39a9b5e..47da205df69 100644 --- a/lib/CodeGen/LiveRangeEdit.cpp +++ b/lib/CodeGen/LiveRangeEdit.cpp @@ -292,6 +292,7 @@ void LiveRangeEdit::eliminateDeadDef(MachineInstr *MI, ToShrinkSet &ToShrink) { if (VNInfo *SVNI = S.getVNInfoAt(Idx)) S.removeValNo(SVNI); } + LI.removeEmptySubRanges(); } } }