summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-05 23:10:40 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-05 23:10:40 +0000
commit0de95ef7f54e83e9b6773b953c8b3ec11b87893a (patch)
treede4233cfe08c376ed2625da45f9939913f284d67 /llvm
parentf07f131c94c9aa376cc319a8b8db24475110fd6e (diff)
downloadbcm5719-llvm-0de95ef7f54e83e9b6773b953c8b3ec11b87893a.tar.gz
bcm5719-llvm-0de95ef7f54e83e9b6773b953c8b3ec11b87893a.zip
Remember to update LiveDebugVariables after per-block splitting.
llvm-svn: 136996
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 63506f094b9..291db7b4bfc 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -1032,7 +1032,7 @@ void RAGreedy::splitAroundRegion(LiveRangeEdit &LREdit,
SmallVector<unsigned, 8> IntvMap;
SE->finish(&IntvMap);
- DebugVars->splitRegister(SA->getParent().reg, LREdit.regs());
+ DebugVars->splitRegister(Reg, LREdit.regs());
ExtraRegInfo.resize(MRI->getNumVirtRegs());
unsigned OrigBlocks = SA->getNumLiveBlocks();
@@ -1228,6 +1228,10 @@ unsigned RAGreedy::tryBlockSplit(LiveInterval &VirtReg, AllocationOrder &Order,
// We did split for some blocks.
SE->finish();
+
+ // Tell LiveDebugVariables about the new ranges.
+ DebugVars->splitRegister(Reg, LREdit.regs());
+
setStage(NewVRegs.begin(), NewVRegs.end(), RS_Spill);
if (VerifyEnabled)
MF->verify(this, "After splitting live range around basic blocks");
OpenPOWER on IntegriCloud