brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 41fcc0b Raw
38 lines · plain
1# RUN: llc -mtriple=x86_64-apple-macos %s -start-before=livedebugvalues -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s2# CHECK: DW_TAG_subprogram3# Test that LiveDebugValues can handle MBBs that are not reachable in a RPOT.4--- |5  define hidden zeroext i1 @__foo_block_invoke(ptr nocapture noundef readonly %.block_descriptor, i64 noundef %type) !dbg !5 {6  entry:7    %call2.i = tail call zeroext i8 @foo_len(), !dbg !108    %cmp.i102.i = icmp ult i8 %call2.i, 64, !dbg !109    br i1 %cmp.i102.i, label %bar_length.exit105.i, label %if.else.i103.i, !dbg !1010  if.else.i103.i:                                   ; preds = %sw.bb.i11    br label %bar_length.exit105.i12  bar_length.exit105.i:                        ; preds = %if.else.i103.i, %sw.bb.i13    unreachable14  baz_size.exit:                  ; preds = %bar_length.exit131.i, %bar_length.exit105.i, %bar_length.exit.i.baz_size.exit_crit_edge15    unreachable16  }17  declare zeroext i8 @foo_len() local_unnamed_addr18  !llvm.dbg.cu = !{!0}19  !llvm.module.flags = !{!3}20  !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6, producer: "Apple clang", isOptimized: true, flags: "-fsanitize=fuzzer-no-link,address", runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, splitDebugInlining: false, nameTableKind: None, sysroot: "/", sdk: "MacOSX.sdk")21  !2 = !{}22  !3 = !{i32 2, !"Debug Info Version", i32 3}23  !5 = distinct !DISubprogram(name: "__foo_block_invoke", linkageName: "__foo_block_invoke", scope: !6, file: !6, line: 557, type: !7, scopeLine: 557, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)24  !6 = !DIFile(filename: "t.c", directory: "")25  !7 = !DISubroutineType(types: !2)26  !10 = !DILocation(line: 558, column: 7, scope: !12)27  !12 = distinct !DILexicalBlock(scope: !5, file: !6, line: 557, column: 50)28name:            __foo_block_invoke29body:             |30  bb.0.entry:31    JCC_1 %bb.1, 5, implicit $eflags, debug-location !1032  bb.28.baz_size.exit:33    RET64 $al, debug-location !1034  bb.1:35    successors: 36  bb.25.if.else.i103.i (machine-block-address-taken):37    JMP_1 %bb.2838