brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 9941ba9 Raw
75 lines · plain
1--- |2 ; RUN: llc %s -mtriple=x86_64 -run-pass=livedebugvalues -o - | FileCheck %s -implicit-check-not=DBG_VALUE3 4  ; Check that DBG_VALUE instructions are correctly propagated into a loop with5  ; break.6 7  ; CHECK-LABEL: bb.0.entry:8  ; CHECK:       DBG_VALUE $ebx, $noreg, !16, !DIExpression()9  ; CHECK-LABEL: bb.1.bb1:10  ; CHECK:       DBG_VALUE $ebx, $noreg, !16, !DIExpression()11  ; CHECK-LABEL: bb.2.bb2:12  ; CHECK:       DBG_VALUE $ebx, $noreg, !16, !DIExpression()13  ; CHECK-LABEL: bb.3.bb3:14  ; CHECK:       DBG_VALUE $ebx, $noreg, !16, !DIExpression()15  ; CHECK-LABEL: bb.4.bb4:16  ; CHECK:       DBG_VALUE $ebx, $noreg, !16, !DIExpression()17 18  define i32 @_Z8bb_to_bb() local_unnamed_addr !dbg !12 {19  entry:20    br label %bb1, !dbg !1721  bb1:22    br label %bb2, !dbg !1723  bb2:24    br label %bb3, !dbg !1725  bb3:26    br label %bb4, !dbg !1727  bb4:28    ret i32 0, !dbg !1729  }30 31  !llvm.dbg.cu = !{!0}32  !llvm.module.flags = !{!7, !8, !9, !10}33  !llvm.ident = !{!11}34  !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 10.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !3, debugInfoForProfiling: true, nameTableKind: None)35  !1 = !DIFile(filename: "main.cpp", directory: "F:\")36  !2 = !{}37  !3 = !{!4}38  !4 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression())39  !5 = distinct !DIGlobalVariable(name: "start", scope: !0, file: !1, line: 4, type: !6, isLocal: false, isDefinition: true)40  !6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)41  !7 = !{i32 2, !"Dwarf Version", i32 4}42  !8 = !{i32 2, !"Debug Info Version", i32 3}43  !9 = !{i32 1, !"wchar_size", i32 2}44  !10 = !{i32 7, !"PIC Level", i32 2}45  !11 = !{!"clang version 10.0.0"}46  !12 = distinct !DISubprogram(name: "bb_to_bb", linkageName: "bb_to_bb", scope: !1, file: !1, line: 6, type: !13, scopeLine: 6, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !15)47  !13 = !DISubroutineType(types: !14)48  !14 = !{!6, !6}49  !15 = !{!16}50  !16 = !DILocalVariable(name: "myVar", scope: !12, file: !1, line: 7, type: !6)51  !17 = !DILocation(line: 10, scope: !12)52 53...54---55name: _Z8bb_to_bb56body:  |57  bb.0.entry:58    successors: %bb.159    $ebx = MOV32ri 0, debug-location !1760    DBG_VALUE $ebx, $noreg, !16, !DIExpression(), debug-location !1761  bb.1.bb1:62    successors: %bb.263    $eax = MOV32ri 0, debug-location !1764  bb.2.bb2:65    successors: %bb.3, %bb.466    $eax = MOV32ri 0, debug-location !1767    JCC_1 %bb.4, 4, implicit killed $eflags68  bb.3.bb3:69    successors: %bb.1, %bb.470    $eax = MOV32ri 0, debug-location !1771    JCC_1 %bb.1, 4, implicit killed $eflags72  bb.4.bb4:73    RET64 $eax, debug-location !1774...75