summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2018-06-21 10:03:34 +0000
committerMikael Holmen <mikael.holmen@ericsson.com>2018-06-21 10:03:34 +0000
commit42f7bc96dd0b541ba57d3cf0ac10a2fc13de1524 (patch)
treeb6a71a9b5f4ba5fcebeb0ea66f007dcbd441ce08 /llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll
parentf38e631343c08bbd06ed3a0bef1ef661a343b344 (diff)
downloadbcm5719-llvm-42f7bc96dd0b541ba57d3cf0ac10a2fc13de1524.tar.gz
bcm5719-llvm-42f7bc96dd0b541ba57d3cf0ac10a2fc13de1524.zip
[DebugInfo] Make sure all DBG_VALUEs' reguse operands have IsDebug property
Summary: In some cases, these operands lacked the IsDebug property, which is meant to signal that they should not affect codegen. This patch adds a check for this property in the MachineVerifier and adds it where it was missing. This includes refactorings to use MachineInstrBuilder construction functions instead of manually setting up the intrinsic everywhere. Patch by: JesperAntonsson Reviewers: aprantl, rnk, echristo, javed.absar Reviewed By: aprantl Subscribers: qcolombet, sdardis, nemanjai, JDevlieghere, atanasyan, llvm-commits Differential Revision: https://reviews.llvm.org/D48319 llvm-svn: 335214
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll b/llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll
index 4449fa56595..7eb56d80123 100644
--- a/llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll
+++ b/llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll
@@ -33,7 +33,7 @@ define i64 @foo(i64 %bar1, i64 %bar2, i64 %bar3, i64 %bar4, i64 %bar5) local_unn
; We expect to find a DBG_VALUE refering to the metadata id for bar5, using the lowest
; of the two fixed stack offsets found earlier.
; CHECK-LABEL: body:
-; CHECK: DBG_VALUE $r1, 0, !17, !DIExpression(DW_OP_plus_uconst, 56)
+; CHECK: DBG_VALUE debug-use $r1, 0, !17, !DIExpression(DW_OP_plus_uconst, 56)
entry:
tail call void @llvm.dbg.value(metadata i64 %bar1, metadata !13, metadata !DIExpression()), !dbg !18
tail call void @llvm.dbg.value(metadata i64 %bar2, metadata !14, metadata !DIExpression()), !dbg !19
OpenPOWER on IntegriCloud