LiveInterval: Document and enforce rules about empty subranges.
authorMatthias Braun <matze@braunis.de>
Thu, 16 Jul 2015 18:55:35 +0000 (18:55 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 16 Jul 2015 18:55:35 +0000 (18:55 +0000)
commit0219a272ec3c1a3784bd85bd0dc2fa457743ffd6
treef0b58d7b909627c9319c3fd739e79f9948f5d03c
parentac40c926aa96f12b6d4edc1364a4ff33283b4e04
LiveInterval: Document and enforce rules about empty subranges.

Empty subranges are not allowed in a LiveInterval and must be removed
instead: Check this in the verifiers, put a reminder for this in the
comment of the shrinkToUses variant for a single lane and make it
automatic for the shrinkToUses variant for a LiveInterval.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242431 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveIntervalAnalysis.h
lib/CodeGen/LiveInterval.cpp
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/MachineVerifier.cpp