DI: Remove DW_TAG_arg_variable and DW_TAG_auto_variable
[oota-llvm.git] / test / Transforms / LICM / debug-value.ll
1 ; RUN: opt -licm -basicaa < %s -S | FileCheck %s
2
3 define void @dgefa() nounwind ssp {
4 entry:
5   br label %for.body
6
7 for.body:                                         ; preds = %for.cond.backedge, %entry
8   br i1 undef, label %if.then, label %for.cond.backedge, !dbg !11
9
10 for.cond.backedge:                                ; preds = %for.body61, %for.body61.us, %for.body
11   br i1 undef, label %for.end104, label %for.body, !dbg !15
12
13 if.then:                                          ; preds = %for.body
14   br i1 undef, label %if.then27, label %if.end.if.end.split_crit_edge.critedge, !dbg !16
15
16 if.then27:                                        ; preds = %if.then
17 ; CHECK: tail call void @llvm.dbg.value
18   tail call void @llvm.dbg.value(metadata double undef, i64 0, metadata !19, metadata !DIExpression()), !dbg !21
19   br label %for.body61.us
20
21 if.end.if.end.split_crit_edge.critedge:           ; preds = %if.then
22   br label %for.body61
23
24 for.body61.us:                                    ; preds = %for.body61.us, %if.then27
25   br i1 undef, label %for.cond.backedge, label %for.body61.us, !dbg !23
26
27 for.body61:                                       ; preds = %for.body61, %if.end.if.end.split_crit_edge.critedge
28   br i1 undef, label %for.cond.backedge, label %for.body61, !dbg !23
29
30 for.end104:                                       ; preds = %for.cond.backedge
31   ret void, !dbg !24
32 }
33
34 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
35
36 !llvm.module.flags = !{!26}
37 !llvm.dbg.sp = !{!0, !6, !9, !10}
38
39 !0 = !DISubprogram(name: "idamax", line: 112, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !25, scope: !1, type: !3)
40 !1 = !DIFile(filename: "/Volumes/Lalgate/work/llvm/projects/llvm-test/SingleSource/Benchmarks/CoyoteBench/lpbench.c", directory: "/private/tmp")
41 !2 = !DICompileUnit(language: DW_LANG_C99, producer: "clang version 2.9 (trunk 127169)", isOptimized: true, emissionKind: 0, file: !25, enums: !8, retainedTypes: !8, subprograms: !8)
42 !3 = !DISubroutineType(types: !4)
43 !4 = !{!5}
44 !5 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
45 !6 = !DISubprogram(name: "dscal", line: 206, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !25, scope: !1, type: !7)
46 !7 = !DISubroutineType(types: !8)
47 !8 = !{null}
48 !9 = !DISubprogram(name: "daxpy", line: 230, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !25, scope: !1, type: !7)
49 !10 = !DISubprogram(name: "dgefa", line: 267, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !25, scope: !1, type: !7)
50 !11 = !DILocation(line: 281, column: 9, scope: !12)
51 !12 = distinct !DILexicalBlock(line: 272, column: 5, file: !25, scope: !13)
52 !13 = distinct !DILexicalBlock(line: 271, column: 5, file: !25, scope: !14)
53 !14 = distinct !DILexicalBlock(line: 267, column: 1, file: !25, scope: !10)
54 !15 = !DILocation(line: 271, column: 5, scope: !14)
55 !16 = !DILocation(line: 284, column: 10, scope: !17)
56 !17 = distinct !DILexicalBlock(line: 282, column: 9, file: !25, scope: !12)
57 !18 = !{double undef}
58 !19 = !DILocalVariable(name: "temp", line: 268, scope: !14, file: !1, type: !20)
59 !20 = !DIBasicType(tag: DW_TAG_base_type, name: "double", size: 64, align: 64, encoding: DW_ATE_float)
60 !21 = !DILocation(line: 286, column: 14, scope: !22)
61 !22 = distinct !DILexicalBlock(line: 285, column: 13, file: !25, scope: !17)
62 !23 = !DILocation(line: 296, column: 13, scope: !17)
63 !24 = !DILocation(line: 313, column: 1, scope: !14)
64 !25 = !DIFile(filename: "/Volumes/Lalgate/work/llvm/projects/llvm-test/SingleSource/Benchmarks/CoyoteBench/lpbench.c", directory: "/private/tmp")
65 !26 = !{i32 1, !"Debug Info Version", i32 3}