summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-23 04:43:16 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-23 04:43:16 +0000
commitb993f6394ff9de5d66022fc12a7dfaf93c9c54e2 (patch)
treeba3afe7a701fe33f2e3277cbd2be4880f7478d75 /llvm/lib
parentf7eb9550460a9ba21a853a3501deccc666141112 (diff)
downloadbcm5719-llvm-b993f6394ff9de5d66022fc12a7dfaf93c9c54e2.tar.gz
bcm5719-llvm-b993f6394ff9de5d66022fc12a7dfaf93c9c54e2.zip
Notify the delegate before removing dead values from a live interval.
The register allocator needs to know when the range shrinks. llvm-svn: 128145
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveRangeEdit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.cpp b/llvm/lib/CodeGen/LiveRangeEdit.cpp
index f5c67b9c748..6b419ebf32f 100644
--- a/llvm/lib/CodeGen/LiveRangeEdit.cpp
+++ b/llvm/lib/CodeGen/LiveRangeEdit.cpp
@@ -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);
OpenPOWER on IntegriCloud