brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · aaa0079 Raw
73 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 not propagated into loops with inner5  ; loops that clobber their locations.6 7  ; CHECK-LABEL: bb.0.entry:8  ; CHECK:       DBG_VALUE $ebx, $noreg, !16, !DIExpression(), debug-location !179 10  define i32 @_Z8bb_to_bb() local_unnamed_addr !dbg !12 {11  entry:12    br label %bb1, !dbg !1713  bb1:14    br label %bb2, !dbg !1715  bb2:16    br label %bb3, !dbg !1717  bb3:18    br label %bb3, !dbg !1719  bb4:20    br label %bb3, !dbg !1721  bb5:22    ret i32 0, !dbg !1723  }24 25  !llvm.dbg.cu = !{!0}26  !llvm.module.flags = !{!7, !8, !9, !10}27  !llvm.ident = !{!11}28  !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)29  !1 = !DIFile(filename: "main.cpp", directory: "F:\")30  !2 = !{}31  !3 = !{!4}32  !4 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression())33  !5 = distinct !DIGlobalVariable(name: "start", scope: !0, file: !1, line: 4, type: !6, isLocal: false, isDefinition: true)34  !6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)35  !7 = !{i32 2, !"Dwarf Version", i32 4}36  !8 = !{i32 2, !"Debug Info Version", i32 3}37  !9 = !{i32 1, !"wchar_size", i32 2}38  !10 = !{i32 7, !"PIC Level", i32 2}39  !11 = !{!"clang version 10.0.0"}40  !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)41  !13 = !DISubroutineType(types: !14)42  !14 = !{!6, !6}43  !15 = !{!16}44  !16 = !DILocalVariable(name: "myVar", scope: !12, file: !1, line: 7, type: !6)45  !17 = !DILocation(line: 10, scope: !12)46 47...48---49name: _Z8bb_to_bb50body:  |51  bb.0.entry:52    successors: %bb.153    $ebx = MOV32ri 0, debug-location !1754    DBG_VALUE $ebx, $noreg, !16, !DIExpression(), debug-location !1755  bb.1.bb1:56    successors: %bb.2, %bb.457    $eax = MOV32ri 0, debug-location !1758    JCC_1 %bb.4, 4, implicit killed $eflags59  bb.2.bb2:60    successors: %bb.361    $eax = MOV32ri 0, debug-location !1762  bb.3.bb3:63    successors: %bb.2, %bb.464    $ebx = MOV32ri 0, debug-location !1765    JCC_1 %bb.2, 4, implicit killed $eflags66  bb.4.bb4:67    successors: %bb.1, %bb.568    $eax = MOV32ri 0, debug-location !1769    JCC_1 %bb.1, 4, implicit killed $eflags70  bb.5.bb5:71    RET64 $eax, debug-location !1772...73