mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Notify the delegate before removing dead values from a live interval.
The register allocator needs to know when the range shrinks. llvm-svn: 128145
This commit is contained in:
parent
d75298c7cd
commit
6570595e4c
@ -182,6 +182,8 @@ void LiveRangeEdit::eliminateDeadDefs(SmallVectorImpl<MachineInstr*> &Dead,
|
||||
// Remove defined value.
|
||||
if (MOI->isDef()) {
|
||||
if (VNInfo *VNI = LI.getVNInfoAt(Idx)) {
|
||||
if (delegate_)
|
||||
delegate_->LRE_WillShrinkVirtReg(LI.reg);
|
||||
LI.removeValNo(VNI);
|
||||
if (LI.empty()) {
|
||||
ToShrink.remove(&LI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user