|
8 | 8 | declare void @use(i32)
|
9 | 9 | declare void @use_2(i32, i32)
|
10 | 10 |
|
11 |
| - define void @sink_simple() { |
| 11 | + define void @sink_simple() !dbg !6 { |
12 | 12 | call void @llvm.dbg.value(metadata i32 0, metadata !5, metadata !DIExpression()), !dbg !10
|
13 | 13 | call void @llvm.dbg.value(metadata i32 0, metadata !11, metadata !DIExpression()), !dbg !10
|
14 | 14 | call void @llvm.dbg.value(metadata i32 0, metadata !12, metadata !DIExpression()), !dbg !10
|
15 | 15 | call void @llvm.dbg.value(metadata i32 0, metadata !13, metadata !DIExpression()), !dbg !10
|
16 | 16 | ret void
|
17 | 17 | }
|
18 |
| - define void @sink_non_consecutive() { |
| 18 | + define void @sink_non_consecutive() !dbg !14 { |
19 | 19 | unreachable
|
20 | 20 | }
|
21 |
| - define void @dont_sink_above_def() { |
| 21 | + define void @dont_sink_above_def() !dbg !15 { |
22 | 22 | unreachable
|
23 | 23 | }
|
24 |
| - define void @sink_to_same_place() { |
| 24 | + define void @sink_to_same_place() !dbg !16 { |
25 | 25 | unreachable
|
26 | 26 | }
|
27 |
| - define void @cannot_sink_across_same_variable() { |
| 27 | + define void @cannot_sink_across_same_variable() !dbg !17 { |
28 | 28 | unreachable
|
29 | 29 | }
|
30 |
| - define void @cannot_sink_across_same_variable2() { |
| 30 | + define void @cannot_sink_across_same_variable2() !dbg !18 { |
31 | 31 | unreachable
|
32 | 32 | }
|
33 |
| - define void @can_sink_across_same_variable_with_same_const() { |
| 33 | + define void @can_sink_across_same_variable_with_same_const() !dbg !19 { |
34 | 34 | unreachable
|
35 | 35 | }
|
36 |
| - define void @sink_multiple_defs() { |
| 36 | + define void @sink_multiple_defs() !dbg !20 { |
37 | 37 | unreachable
|
38 | 38 | }
|
39 |
| - define void @clone_same_bb() { |
| 39 | + define void @clone_same_bb() !dbg !21 { |
40 | 40 | unreachable
|
41 | 41 | }
|
42 |
| - define void @clone_different_bb() { |
| 42 | + define void @clone_different_bb() !dbg !22 { |
43 | 43 | unreachable
|
44 | 44 | }
|
45 |
| - define void @tee_with_two_use_insts() { |
| 45 | + define void @tee_with_two_use_insts() !dbg !23 { |
46 | 46 | unreachable
|
47 | 47 | }
|
48 |
| - define void @tee_with_one_inst_with_two_uses() { |
| 48 | + define void @tee_with_one_inst_with_two_uses() !dbg !24 { |
49 | 49 | unreachable
|
50 | 50 | }
|
51 | 51 | declare void @llvm.dbg.value(metadata, metadata, metadata)
|
|
81 | 81 | ; CHECK: ![[VAR_C:[0-9]+]] = !DILocalVariable(name: "var_c"
|
82 | 82 | !13 = !DILocalVariable(name: "var_d", scope: !6, file: !1, line: 2, type: !9)
|
83 | 83 | ; CHECK: ![[VAR_D:[0-9]+]] = !DILocalVariable(name: "var_d"
|
| 84 | + !14 = distinct !DISubprogram(name: "sink_non_consecutive", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 85 | + !15 = distinct !DISubprogram(name: "dont_sink_above_def", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 86 | + !16 = distinct !DISubprogram(name: "sink_to_same_place", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 87 | + !17 = distinct !DISubprogram(name: "cannot_sink_across_same_variable", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 88 | + !18 = distinct !DISubprogram(name: "cannot_sink_across_same_variable2", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 89 | + !19 = distinct !DISubprogram(name: "can_sink_across_same_variable_with_same_const", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 90 | + !20 = distinct !DISubprogram(name: "sink_multiple_defs", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 91 | + !21 = distinct !DISubprogram(name: "clone_same_bb", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 92 | + !22 = distinct !DISubprogram(name: "clone_different_bb", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 93 | + !23 = distinct !DISubprogram(name: "tee_with_two_use_insts", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
| 94 | + !24 = distinct !DISubprogram(name: "tee_with_one_inst_with_two_uses", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, unit: !0) |
84 | 95 | ...
|
85 | 96 |
|
86 | 97 | ---
|
|
0 commit comments