debug-value.ll 3.8 KB

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