summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveRangeEdit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-09 00:57:29 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-09 00:57:29 +0000
commit92a55f4bdd120cdd3bb5a004c792d4d24a940311 (patch)
treeab385f0eb486061c25020ab422032a3beaba78f3 /lib/CodeGen/LiveRangeEdit.cpp
parent2adc5b6a17268834b08fda444b1a84550e8c5ae8 (diff)
downloadllvm-92a55f4bdd120cdd3bb5a004c792d4d24a940311.tar.gz
llvm-92a55f4bdd120cdd3bb5a004c792d4d24a940311.tar.bz2
llvm-92a55f4bdd120cdd3bb5a004c792d4d24a940311.tar.xz
Add a LiveRangeEdit::Delegate protocol.
This will we used for keeping register allocator data structures up to date while LiveRangeEdit is trimming live intervals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveRangeEdit.cpp')
-rw-r--r--lib/CodeGen/LiveRangeEdit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveRangeEdit.cpp b/lib/CodeGen/LiveRangeEdit.cpp
index 4e2c00df38..75aeac4639 100644
--- a/lib/CodeGen/LiveRangeEdit.cpp
+++ b/lib/CodeGen/LiveRangeEdit.cpp
@@ -174,6 +174,8 @@ void LiveRangeEdit::eliminateDeadDefs(SmallVectorImpl<MachineInstr*> &Dead,
ToShrink.insert(&LI);
}
+ if (delegate_)
+ delegate_->LRE_WillEraseInstruction(MI);
LIS.RemoveMachineInstrFromMaps(MI);
MI->eraseFromParent();
}