[llvm] r224804 - LiveRangeEdit: Check for completely empy subranges after removing ValNos.
Matthias Braun
matze at braunis.de
Tue Dec 23 18:11:46 PST 2014
Author: matze
Date: Tue Dec 23 20:11:46 2014
New Revision: 224804
URL: http://llvm.org/viewvc/llvm-project?rev=224804&view=rev
Log:
LiveRangeEdit: Check for completely empy subranges after removing ValNos.
Completely empty subranges are not allowed and must be removed when
subreg liveness is enabled.
Modified:
llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp
Modified: llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp?rev=224804&r1=224803&r2=224804&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp Tue Dec 23 20:11:46 2014
@@ -292,6 +292,7 @@ void LiveRangeEdit::eliminateDeadDef(Mac
if (VNInfo *SVNI = S.getVNInfoAt(Idx))
S.removeValNo(SVNI);
}
+ LI.removeEmptySubRanges();
}
}
}
More information about the llvm-commits
mailing list