OSDN Git Service

LiveIntervalAnalysis: Factor out code to update liveness on vreg def removal
authorMatthias Braun <matze@braunis.de>
Wed, 21 Jan 2015 19:02:30 +0000 (19:02 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 21 Jan 2015 19:02:30 +0000 (19:02 +0000)
commit7d3ec5af28d1c00f9a98c8815b27292cffc8e75a
treeafae4bed2895ff6bf1e7508a2e2095e09582a200
parenta955eabc7b080744e6af25a2c803aeafbf1940a4
LiveIntervalAnalysis: Factor out code to update liveness on vreg def removal

This cleans up code and is more in line with the general philosophy of
modifying LiveIntervals through LiveIntervalAnalysis instead of changing
them directly.

This also fixes a case where SplitEditor::removeBackCopies() would miss
the subregister ranges.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226690 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveIntervalAnalysis.h
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/LiveRangeEdit.cpp
lib/CodeGen/RegisterCoalescer.cpp
lib/CodeGen/SplitKit.cpp