summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveDebugValues.cpp
diff options
context:
space:
mode:
authorDavid Stenberg <david.stenberg@ericsson.com>2019-08-30 09:06:50 +0000
committerDavid Stenberg <david.stenberg@ericsson.com>2019-08-30 09:06:50 +0000
commitb35d4699d093c7852a558763f96be7b3cac7f6d6 (patch)
treec88c92c151e1d732302f6fb9adad9f7a6c482990 /llvm/lib/CodeGen/LiveDebugValues.cpp
parent0491d13ca59f74bae5c8f9ea2929c9cefe4b9697 (diff)
downloadbcm5719-llvm-b35d4699d093c7852a558763f96be7b3cac7f6d6.tar.gz
bcm5719-llvm-b35d4699d093c7852a558763f96be7b3cac7f6d6.zip
[LiveDebugValues] Insert entry values after bundles
Summary: Change LiveDebugValues so that it inserts entry values after the bundle which contains the clobbering instruction. Previously it would insert the debug value after the bundle head using insertAfter(), breaking the bundle. Reviewers: djtodoro, NikolaPrica, aprantl, vsk Reviewed By: vsk Subscribers: hiraditya, llvm-commits Tags: #debug-info, #llvm Differential Revision: https://reviews.llvm.org/D66888 llvm-svn: 370448
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp
index 29d307845cf..ea5512fc369 100644
--- a/llvm/lib/CodeGen/LiveDebugValues.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues.cpp
@@ -1311,8 +1311,7 @@ bool LiveDebugValues::ExtendRanges(MachineFunction &MF) {
// Add any DBG_VALUE instructions necessitated by spills.
for (auto &TR : Transfers)
- MBB->insertAfter(MachineBasicBlock::iterator(*TR.TransferInst),
- TR.DebugInst);
+ MBB->insertAfterBundle(TR.TransferInst->getIterator(), TR.DebugInst);
Transfers.clear();
LLVM_DEBUG(printVarLocInMBB(MF, OutLocs, VarLocIDs,
OpenPOWER on IntegriCloud