diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-09 00:57:29 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-09 00:57:29 +0000 |
commit | 92a55f4bdd120cdd3bb5a004c792d4d24a940311 (patch) | |
tree | ab385f0eb486061c25020ab422032a3beaba78f3 /lib/CodeGen/LiveRangeEdit.cpp | |
parent | 2adc5b6a17268834b08fda444b1a84550e8c5ae8 (diff) | |
download | llvm-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.cpp | 2 |
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(); } |