comparison test/Transforms/AddDiscriminators/first-only.ll @ 120:1172e4bd9c6f

update 4.0.0
author mir3636
date Fri, 25 Nov 2016 19:14:25 +0900
parents 7d135dc70f03
children 803732b1fca8
comparison
equal deleted inserted replaced
101:34baf5011add 120:1172e4bd9c6f
1 ; RUN: opt < %s -add-discriminators -S | FileCheck %s 1 ; RUN: opt < %s -add-discriminators -S | FileCheck %s
2 ; RUN: opt < %s -passes=add-discriminators -S | FileCheck %s
2 3
3 ; Test that the only instructions that receive a new discriminator in 4 ; Test that the only instructions that receive a new discriminator in
4 ; the block 'if.then' are those that share the same line number as 5 ; the block 'if.then' are those that share the same line number as
5 ; the branch in 'entry'. 6 ; the branch in 'entry'.
6 ; 7 ;
44 ; CHECK: ret void, !dbg ![[END:[0-9]+]] 45 ; CHECK: ret void, !dbg ![[END:[0-9]+]]
45 } 46 }
46 47
47 attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } 48 attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
48 49
49 ; We should be able to add discriminators even in the absence of llvm.dbg.cu. 50 !llvm.dbg.cu = !{!0}
50 ; When using sample profiles, the front end will generate line tables but it
51 ; does not generate llvm.dbg.cu to prevent codegen from emitting debug info
52 ; to the final binary.
53 ; !llvm.dbg.cu = !{!0}
54 !llvm.module.flags = !{!7, !8} 51 !llvm.module.flags = !{!7, !8}
55 !llvm.ident = !{!9} 52 !llvm.ident = !{!9}
56 53
57 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) 54 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: NoDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2)
58 !1 = !DIFile(filename: "first-only.c", directory: ".") 55 !1 = !DIFile(filename: "first-only.c", directory: ".")
59 !2 = !{} 56 !2 = !{}
60 !3 = !{!4} 57 !4 = distinct !DISubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !5, type: !6, variables: !2)
61 !4 = distinct !DISubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !5, type: !6, variables: !2)
62 !5 = !DIFile(filename: "first-only.c", directory: ".") 58 !5 = !DIFile(filename: "first-only.c", directory: ".")
63 !6 = !DISubroutineType(types: !{null}) 59 !6 = !DISubroutineType(types: !{null})
64 !7 = !{i32 2, !"Dwarf Version", i32 4} 60 !7 = !{i32 2, !"Dwarf Version", i32 4}
65 !8 = !{i32 1, !"Debug Info Version", i32 3} 61 !8 = !{i32 1, !"Debug Info Version", i32 3}
66 !9 = !{!"clang version 3.5 (trunk 199750) (llvm/trunk 199751)"} 62 !9 = !{!"clang version 3.5 (trunk 199750) (llvm/trunk 199751)"}