diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-01-30 19:37:48 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-01-30 19:37:48 +0000 |
commit | 3e2659eb92aeefef87dd16ede20efd45fb034fc2 (patch) | |
tree | c006ef0d9b52cb9067065b0670436c978efd3f78 /llvm/test/Transforms | |
parent | 70fe588c889ea58c9a9d1d369bb3bbf96413e365 (diff) | |
download | bcm5719-llvm-3e2659eb92aeefef87dd16ede20efd45fb034fc2.tar.gz bcm5719-llvm-3e2659eb92aeefef87dd16ede20efd45fb034fc2.zip |
Inliner: Use replaceDbgDeclareForAlloca() instead of splicing the
instruction and generalize it to optionally dereference the variable.
Follow-up to r227544.
llvm-svn: 227604
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r-- | llvm/test/Transforms/Inline/alloca-dbgdeclare.ll | 2 | ||||
-rw-r--r-- | llvm/test/Transforms/Inline/inline_dbg_declare.ll | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll b/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll index 8ad500499ee..6809e41495e 100644 --- a/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll +++ b/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll @@ -40,7 +40,7 @@ entry: ; CHECK: define void @_Z3fn5v() ; CHECK-NEXT: entry: ; CHECK-NEXT: %agg.tmp.sroa.3.i = alloca [20 x i8], align 4 -; CHECK-NEXT: tail call void @llvm.dbg.declare(metadata [20 x i8]* %agg.tmp.sroa.3.i, +; CHECK-NEXT: call void @llvm.dbg.declare(metadata [20 x i8]* %agg.tmp.sroa.3.i, %agg.tmp.sroa.3 = alloca [20 x i8], align 4 tail call void @llvm.dbg.declare(metadata [20 x i8]* %agg.tmp.sroa.3, metadata !46, metadata !48), !dbg !49 %agg.tmp.sroa.0.0.copyload = load i32* getelementptr inbounds (%struct.A* @b, i64 0, i32 0), align 8, !dbg !50 diff --git a/llvm/test/Transforms/Inline/inline_dbg_declare.ll b/llvm/test/Transforms/Inline/inline_dbg_declare.ll index 0bba3fc9195..d296678faba 100644 --- a/llvm/test/Transforms/Inline/inline_dbg_declare.ll +++ b/llvm/test/Transforms/Inline/inline_dbg_declare.ll @@ -92,6 +92,6 @@ attributes #1 = { nounwind readnone } !22 = !MDLocation(line: 8, column: 14, scope: !9)
!23 = !MDLocation(line: 9, column: 1, scope: !9)
-; CHECK: [[m23]] = !{!"0x101\00x\0016777217\000", !4, !5, !8, [[CALL_SITE:![0-9]*]]} ; [ DW_TAG_arg_variable ] [x] [line 1]
-; CHECK: [[CALL_SITE]] = distinct !MDLocation(line: 8, column: 14, scope: !9)
+; CHECK: [[CALL_SITE:![0-9]+]] = distinct !MDLocation(line: 8, column: 14, scope: !9)
+; CHECK: [[m23]] = !{!"0x101\00x\0016777217\000", !4, !5, !8, [[CALL_SITE]]} ; [ DW_TAG_arg_variable ] [x] [line 1]
; CHECK: [[m24]] = !MDLocation(line: 1, column: 17, scope: !4, inlinedAt: [[CALL_SITE]])
|