brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · ab93d89 Raw
44 lines · plain
1# RUN: llc %s -mtriple=aarch64-unknown-unknown -run-pass=legalizer -verify-machineinstrs -pass-remarks-missed=gisel* -o - 2>&1 | FileCheck %s2 3# When we create a tail call, we expect to drop the return's debug location.4# Ensure that we don't get a missed remark for debug locations in this case.5 6# CHECK-NOT: remark: file.ll:[[#]]:[[#]]: lost [[#]] debug locations during pass7 8--- |9  define void @snork() !dbg !6 { unreachable }10 11  !llvm.module.flags = !{!0}12  !llvm.dbg.cu = !{!1}13  !llvm.debugify = !{!4, !5}14 15  !0 = !{i32 2, !"Debug Info Version", i32 3}16  !1 = distinct !DICompileUnit(language: DW_LANG_C, file: !2, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !3)17  !2 = !DIFile(filename: "file.ll", directory: "/")18  !3 = !{}19  !4 = !{i32 2}20  !5 = !{i32 1}21  !6 = distinct !DISubprogram(name: "snork", linkageName: "snork", scope: null, file: !2, line: 1, type: !7, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !1, retainedNodes: !8)22  !7 = !DISubroutineType(types: !3)23  !8 = !{!9}24  !9 = !DILocalVariable(name: "1", scope: !6, file: !2, line: 2, type: !10)25  !10 = !DIBasicType(name: "ty32", size: 32, encoding: DW_ATE_unsigned)26  !11 = !DILocation(line: 1, column: 1, scope: !6)27  !12 = !DILocation(line: 2, column: 1, scope: !6)28 29...30---31name:            snork32alignment:       433tracksRegLiveness: true34body:             |35  bb.0:36    %0:_(p0) = G_IMPLICIT_DEF debug-location !DILocation(line: 0, scope: !6)37    %1:_(s8) = G_CONSTANT i8 038    %2:_(s64) = G_IMPLICIT_DEF debug-location !DILocation(line: 0, scope: !6)39    G_MEMSET %0(p0), %1(s8), %2(s64), 1, debug-location !11 :: (store (s8))40    DBG_VALUE 0, 0, !9, !DIExpression(), debug-location !1241    RET_ReallyLR debug-location !1242 43...44