Skip to content

Commit 8111e30

Browse files
committed
Reduce merge-nested-block-loc.ll
1 parent e1be028 commit 8111e30

File tree

1 file changed

+10
-23
lines changed

1 file changed

+10
-23
lines changed

llvm/test/DebugInfo/AArch64/merge-nested-block-loc.ll

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,18 @@ entry:
4040
br i1 false, label %if.then, label %if.else
4141

4242
if.then: ; preds = %entry
43-
%mul3 = mul i32 0, 0, !dbg !14
44-
store i32 %mul3, ptr %i, align 4, !dbg !14
43+
store i32 1, ptr %i, align 4, !dbg !7
4544
br label %if.end
4645

4746
if.else: ; preds = %entry
48-
%mul9 = mul i32 0, 0, !dbg !15
49-
store i32 %mul9, ptr %i, align 4, !dbg !15
47+
store i32 0, ptr %i, align 4, !dbg !12
5048
br label %if.end
5149

5250
if.end: ; preds = %if.else, %if.then
5351
%0 = load i32, ptr %i, align 4
5452
ret i32 0
5553
}
5654

57-
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
58-
declare void @llvm.lifetime.start.p0(i64 immarg, ptr captures(none)) #0
59-
60-
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
61-
declare void @llvm.lifetime.end.p0(i64 immarg, ptr captures(none)) #0
62-
63-
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
64-
6555
!llvm.dbg.cu = !{!0}
6656
!llvm.module.flags = !{!2}
6757

@@ -72,17 +62,14 @@ attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: re
7262
!4 = !DIFile(filename: "1.c", directory: "")
7363
!5 = !DISubroutineType(types: !6)
7464
!6 = !{}
75-
!7 = !DILocation(line: 3, column: 10, scope: !8)
76-
!8 = distinct !DILexicalBlock(scope: !3, file: !4, line: 3, column: 7)
77-
!9 = !DILocation(line: 4, column: 7, scope: !10)
78-
!10 = distinct !DILexicalBlock(scope: !8, file: !4, line: 3, column: 21)
79-
!11 = !DILocation(line: 40, column: 3, scope: !12)
80-
!12 = !DILexicalBlockFile(scope: !10, file: !13, discriminator: 0)
81-
!13 = !DIFile(filename: "m.c", directory: "")
82-
!14 = !DILocation(line: 42, column: 3, scope: !12)
83-
!15 = !DILocation(line: 42, column: 3, scope: !16)
84-
!16 = !DILexicalBlockFile(scope: !17, file: !13, discriminator: 0)
85-
!17 = distinct !DILexicalBlock(scope: !8, file: !4, line: 6, column: 9)
65+
!7 = !DILocation(line: 42, column: 3, scope: !8)
66+
!8 = !DILexicalBlockFile(scope: !10, file: !9, discriminator: 0)
67+
!9 = !DIFile(filename: "m.c", directory: "")
68+
!10 = distinct !DILexicalBlock(scope: !11, file: !4, line: 3, column: 21)
69+
!11 = distinct !DILexicalBlock(scope: !3, file: !4, line: 3, column: 7)
70+
!12 = !DILocation(line: 42, column: 3, scope: !13)
71+
!13 = !DILexicalBlockFile(scope: !14, file: !9, discriminator: 0)
72+
!14 = distinct !DILexicalBlock(scope: !11, file: !4, line: 6, column: 9)
8673

8774
; CHECK: [[SP:![0-9]+]] = distinct !DISubprogram(name: "foo", scope: [[FILE1:![0-9]+]], file: [[FILE1]], line: 1
8875
; CHECK: [[FILE1]] = !DIFile(filename: "1.c", directory: "")

0 commit comments

Comments
 (0)