@@ -40,28 +40,18 @@ entry:
40
40
br i1 false , label %if.then , label %if.else
41
41
42
42
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
45
44
br label %if.end
46
45
47
46
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
50
48
br label %if.end
51
49
52
50
if.end: ; preds = %if.else, %if.then
53
51
%0 = load i32 , ptr %i , align 4
54
52
ret i32 0
55
53
}
56
54
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
-
65
55
!llvm.dbg.cu = !{!0 }
66
56
!llvm.module.flags = !{!2 }
67
57
@@ -72,17 +62,14 @@ attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: re
72
62
!4 = !DIFile (filename: "1.c" , directory: "" )
73
63
!5 = !DISubroutineType (types: !6 )
74
64
!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 )
86
73
87
74
; CHECK: [[SP:![0-9]+]] = distinct !DISubprogram(name: "foo", scope: [[FILE1:![0-9]+]], file: [[FILE1]], line: 1
88
75
; CHECK: [[FILE1]] = !DIFile(filename: "1.c", directory: "")
0 commit comments