File: ldv_unreachable_blocks2.mir

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,696 kB
  • sloc: cpp: 7,438,781; ansic: 1,393,871; asm: 1,012,926; python: 241,771; f90: 86,635; objc: 75,411; lisp: 42,144; pascal: 17,286; sh: 8,596; ml: 5,082; perl: 4,730; makefile: 3,591; awk: 3,523; javascript: 2,251; xml: 892; fortran: 672
file content (31 lines) | stat: -rw-r--r-- 1,732 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# RUN: llc -mtriple=x86_64-apple-macos %s -start-before=livedebugvalues -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
# CHECK: DW_TAG_subprogram
# Test that LiveDebugValues can handle MBBs that are not reachable in a RPOT.
--- |
  define hidden zeroext i1 @__foo_block_invoke(ptr nocapture noundef readonly %.block_descriptor, i64 noundef %type) !dbg !7 {
  entry:
    unreachable
  do.body.i129.i:                                   ; preds = %if.else6.i128.i
    unreachable
  }
  !llvm.dbg.cu = !{!3}
  !llvm.module.flags = !{!5}
  !2 = !{}
  !3 = distinct !DICompileUnit(language: DW_LANG_C99, file: !4, producer: "clang", runtimeVersion: 0, emissionKind: FullDebug)
  !4 = !DIFile(filename: "t.c", directory: "/")
  !5 = !{i32 2, !"Debug Info Version", i32 3}
  !7 = distinct !DISubprogram(name: "__foo_block_invoke", scope: !4, file: !4, line: 573, type: !9, scopeLine: 573, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !3, retainedNodes: !2)
  !9 = !DISubroutineType(types: !2)
  !11 = !DILocalVariable(name: ".block_descriptor", arg: 1, scope: !7, file: !4, line: 557, type: !12, flags: DIFlagArtificial)
  !12 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 64)
  !13 = !DICompositeType(tag: DW_TAG_structure_type, name: "__block_literal_1", scope: !4, file: !4, line: 557, size: 392, elements: !2)
  !15 = !DILocation(line: 558, column: 7, scope: !7)
name:            __foo_block_invoke
body:             |
  bb.0.entry:
    DBG_VALUE $rdi, $noreg, !11, !DIExpression(), debug-location !15
    $ecx = MOV32rr undef $edi, implicit $dil, debug-location !15
  bb.2:
    successors: 
    TRAP
  bb.21.do.body.i129.i (machine-block-address-taken):