Index: llvm/lib/CodeGen/LiveDebugVariables.cpp =================================================================== --- llvm/lib/CodeGen/LiveDebugVariables.cpp +++ llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -167,10 +167,6 @@ /// Map of slot indices where this value is live. LocMap locInts; - /// Set of interval start indexes that have been trimmed to the - /// lexical scope. - SmallSet trimmedDefs; - /// Insert a DBG_VALUE into MBB at Idx for LocNo. void insertDebugValue(MachineBasicBlock *MBB, SlotIndex StartIdx, SlotIndex StopIdx, DbgValueLocation Loc, bool Spilled, @@ -915,8 +911,7 @@ ++I; // If the interval also overlaps the start of the "next" (i.e. - // current) range create a new interval for the remainder (which - // may be further trimmed). + // current) range create a new interval for the remainder if (RStart < IStop) I.insert(RStart, IStop, Loc); } @@ -926,13 +921,6 @@ if (!I.valid()) return; - if (I.start() < RStart) { - // Interval start overlaps range - trim to the scope range. - I.setStartUnchecked(RStart); - // Remember that this interval was trimmed. - trimmedDefs.insert(RStart); - } - // The end of a lexical scope range is the last instruction in the // range. To convert to an interval we need the index of the // instruction after it. @@ -1362,12 +1350,6 @@ bool Spilled = SpillIt != SpillOffsets.end(); unsigned SpillOffset = Spilled ? SpillIt->second : 0; - // If the interval start was trimmed to the lexical scope insert the - // DBG_VALUE at the previous index (otherwise it appears after the - // first instruction in the range). - if (trimmedDefs.count(Start)) - Start = Start.getPrevIndex(); - LLVM_DEBUG(dbgs() << "\t[" << Start << ';' << Stop << "):" << Loc.locNo()); MachineFunction::iterator MBB = LIS.getMBBFromIndex(Start)->getIterator(); SlotIndex MBBEnd = LIS.getMBBEndIdx(&*MBB); Index: llvm/test/CodeGen/AArch64/wrong_debug_loc_after_regalloc.ll =================================================================== --- /dev/null +++ llvm/test/CodeGen/AArch64/wrong_debug_loc_after_regalloc.ll @@ -0,0 +1,174 @@ +; RUN: llc -O3 -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -print-after virtregrewriter < %s >%t 2>&1 && FileCheck <%t %s + +; This test checks that DBG_VALUE instruction placed correctly. +; Specifically: if Register Allocator inserts additional instructions +; in the beginning of basic block then it should not break placement +; of DBG_VALUE for loop index variable. That DBG_VALUE instruction +; for "i" variable should be placed before any real loop instruction. + +; Created from the following C source: + +; cat test_debug_val.cpp +; +; void func(int, ...); +; +; int array[0x100]; +; +; int main( int argc, char **argv ) +; { +; int var = 56; +; +; int a1 = array[1]; int a2 = array[2]; int a3 = array[3]; int a4 = array[4]; +; int a5 = array[5]; int a6 = array[6]; int a7 = array[7]; int a8 = array[8]; +; int a9 = array[9]; int a10 = array[10]; +; +; for( int i = 0; i < 0x100; i++ ) { +; +; array[i] = var; +; +; func(0, i, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ); +; } +; +; return 0; +; } +; +; +; clang -O3 -g -c --target=aarch64-unknown-linux -std=gnu++14 test_debug_val.cpp -emit-llvm -S -o - + + +; CHECK: bb.2.for.body +; CHECK-NEXT: predecessors +; CHECK-NEXT: successors +; CHECK-NEXT: liveins +; CHECK-NOT: MOV +; CHECK: DBG_VALUE $[[REG:[xw][0-9]+]], $noreg, !"i" +; CHECK: MOV + +; ModuleID = 'test_debug_val.cpp' +source_filename = "test_debug_val.cpp" +target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" +target triple = "aarch64-unknown-linux" + +@array = dso_local local_unnamed_addr global [256 x i32] zeroinitializer, align 4, !dbg !0 + +; Function Attrs: norecurse +define dso_local i32 @main(i32 %argc, i8** nocapture readnone %argv) local_unnamed_addr #0 !dbg !14 { +entry: + call void @llvm.dbg.value(metadata i32 %argc, metadata !21, metadata !DIExpression()), !dbg !36 + call void @llvm.dbg.value(metadata i8** %argv, metadata !22, metadata !DIExpression()), !dbg !36 + call void @llvm.dbg.value(metadata i32 56, metadata !23, metadata !DIExpression()), !dbg !36 + %0 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 1), align 4, !dbg !37, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %0, metadata !24, metadata !DIExpression()), !dbg !36 + %1 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 2), align 4, !dbg !42, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %1, metadata !25, metadata !DIExpression()), !dbg !36 + %2 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 3), align 4, !dbg !43, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %2, metadata !26, metadata !DIExpression()), !dbg !36 + %3 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 4), align 4, !dbg !44, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %3, metadata !27, metadata !DIExpression()), !dbg !36 + %4 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 5), align 4, !dbg !45, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %4, metadata !28, metadata !DIExpression()), !dbg !36 + %5 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 6), align 4, !dbg !46, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %5, metadata !29, metadata !DIExpression()), !dbg !36 + %6 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 7), align 4, !dbg !47, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %6, metadata !30, metadata !DIExpression()), !dbg !36 + %7 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 8), align 4, !dbg !48, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %7, metadata !31, metadata !DIExpression()), !dbg !36 + %8 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 9), align 4, !dbg !49, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %8, metadata !32, metadata !DIExpression()), !dbg !36 + %9 = load i32, i32* getelementptr inbounds ([256 x i32], [256 x i32]* @array, i64 0, i64 10), align 4, !dbg !50, !tbaa !38 + call void @llvm.dbg.value(metadata i32 %9, metadata !33, metadata !DIExpression()), !dbg !36 + call void @llvm.dbg.value(metadata i32 0, metadata !34, metadata !DIExpression()), !dbg !51 + br label %for.body, !dbg !52 + +for.cond.cleanup: ; preds = %for.body + ret i32 0, !dbg !53 + +for.body: ; preds = %for.body, %entry + %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ] + call void @llvm.dbg.value(metadata i64 %indvars.iv, metadata !34, metadata !DIExpression()), !dbg !51 + %arrayidx = getelementptr inbounds [256 x i32], [256 x i32]* @array, i64 0, i64 %indvars.iv, !dbg !54 + store i32 56, i32* %arrayidx, align 4, !dbg !57, !tbaa !38 + %10 = trunc i64 %indvars.iv to i32, !dbg !58 + tail call void (i32, ...) @_Z4funciz(i32 0, i32 %10, i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9), !dbg !58 + %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1, !dbg !59 + call void @llvm.dbg.value(metadata i32 undef, metadata !34, metadata !DIExpression(DW_OP_plus_uconst, 1, DW_OP_stack_value)), !dbg !51 + %exitcond = icmp eq i64 %indvars.iv.next, 256, !dbg !60 + br i1 %exitcond, label %for.cond.cleanup, label %for.body, !dbg !52, !llvm.loop !61 +} + +declare dso_local void @_Z4funciz(i32, ...) local_unnamed_addr #1 + +; Function Attrs: nounwind readnone speculatable +declare void @llvm.dbg.value(metadata, metadata, metadata) #2 + +attributes #0 = { norecurse "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+neon" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+neon" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #2 = { nounwind readnone speculatable } + +!llvm.dbg.cu = !{!2} +!llvm.module.flags = !{!10, !11, !12} +!llvm.ident = !{!13} + +!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) +!1 = distinct !DIGlobalVariable(name: "array", scope: !2, file: !3, line: 4, type: !6, isLocal: false, isDefinition: true) +!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 9.0.0 (https://github.com/llvm/llvm-project.git 44c06a512dfe3a5a3f246e84e9aa4bc557815a17)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, nameTableKind: None) +!3 = !DIFile(filename: "test_debug_val.cpp", directory: "/home/avl/bugs/RYNDA-934/from_win") +!4 = !{} +!5 = !{!0} +!6 = !DICompositeType(tag: DW_TAG_array_type, baseType: !7, size: 8192, elements: !8) +!7 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) +!8 = !{!9} +!9 = !DISubrange(count: 256) +!10 = !{i32 2, !"Dwarf Version", i32 4} +!11 = !{i32 2, !"Debug Info Version", i32 3} +!12 = !{i32 1, !"wchar_size", i32 4} +!13 = !{!"clang version 9.0.0 (https://github.com/llvm/llvm-project.git 44c06a512dfe3a5a3f246e84e9aa4bc557815a17)"} +!14 = distinct !DISubprogram(name: "main", scope: !3, file: !3, line: 6, type: !15, scopeLine: 7, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !20) +!15 = !DISubroutineType(types: !16) +!16 = !{!7, !7, !17} +!17 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !18, size: 64) +!18 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !19, size: 64) +!19 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_unsigned_char) +!20 = !{!21, !22, !23, !24, !25, !26, !27, !28, !29, !30, !31, !32, !33, !34} +!21 = !DILocalVariable(name: "argc", arg: 1, scope: !14, file: !3, line: 6, type: !7) +!22 = !DILocalVariable(name: "argv", arg: 2, scope: !14, file: !3, line: 6, type: !17) +!23 = !DILocalVariable(name: "var", scope: !14, file: !3, line: 8, type: !7) +!24 = !DILocalVariable(name: "a1", scope: !14, file: !3, line: 10, type: !7) +!25 = !DILocalVariable(name: "a2", scope: !14, file: !3, line: 10, type: !7) +!26 = !DILocalVariable(name: "a3", scope: !14, file: !3, line: 10, type: !7) +!27 = !DILocalVariable(name: "a4", scope: !14, file: !3, line: 10, type: !7) +!28 = !DILocalVariable(name: "a5", scope: !14, file: !3, line: 11, type: !7) +!29 = !DILocalVariable(name: "a6", scope: !14, file: !3, line: 11, type: !7) +!30 = !DILocalVariable(name: "a7", scope: !14, file: !3, line: 11, type: !7) +!31 = !DILocalVariable(name: "a8", scope: !14, file: !3, line: 11, type: !7) +!32 = !DILocalVariable(name: "a9", scope: !14, file: !3, line: 12, type: !7) +!33 = !DILocalVariable(name: "a10", scope: !14, file: !3, line: 12, type: !7) +!34 = !DILocalVariable(name: "i", scope: !35, file: !3, line: 14, type: !7) +!35 = distinct !DILexicalBlock(scope: !14, file: !3, line: 14, column: 4) +!36 = !DILocation(line: 0, scope: !14) +!37 = !DILocation(line: 10, column: 13, scope: !14) +!38 = !{!39, !39, i64 0} +!39 = !{!"int", !40, i64 0} +!40 = !{!"omnipotent char", !41, i64 0} +!41 = !{!"Simple C++ TBAA"} +!42 = !DILocation(line: 10, column: 32, scope: !14) +!43 = !DILocation(line: 10, column: 51, scope: !14) +!44 = !DILocation(line: 10, column: 70, scope: !14) +!45 = !DILocation(line: 11, column: 13, scope: !14) +!46 = !DILocation(line: 11, column: 32, scope: !14) +!47 = !DILocation(line: 11, column: 51, scope: !14) +!48 = !DILocation(line: 11, column: 70, scope: !14) +!49 = !DILocation(line: 12, column: 13, scope: !14) +!50 = !DILocation(line: 12, column: 33, scope: !14) +!51 = !DILocation(line: 0, scope: !35) +!52 = !DILocation(line: 14, column: 4, scope: !35) +!53 = !DILocation(line: 21, column: 4, scope: !14) +!54 = !DILocation(line: 16, column: 8, scope: !55) +!55 = distinct !DILexicalBlock(scope: !56, file: !3, line: 14, column: 37) +!56 = distinct !DILexicalBlock(scope: !35, file: !3, line: 14, column: 4) +!57 = !DILocation(line: 16, column: 17, scope: !55) +!58 = !DILocation(line: 18, column: 8, scope: !55) +!59 = !DILocation(line: 14, column: 32, scope: !56) +!60 = !DILocation(line: 14, column: 22, scope: !56) +!61 = distinct !{!61, !52, !62} +!62 = !DILocation(line: 19, column: 4, scope: !35) Index: llvm/test/DebugInfo/X86/dbg-addr-dse.ll =================================================================== --- llvm/test/DebugInfo/X86/dbg-addr-dse.ll +++ llvm/test/DebugInfo/X86/dbg-addr-dse.ll @@ -22,78 +22,88 @@ ; ModuleID = 'dse.c' source_filename = "dse.c" target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-pc-windows-msvc19.0.24215" +target triple = "x86_64-unknown-windows-msvc19.11.0" -declare void @llvm.dbg.addr(metadata, metadata, metadata) #2 -declare void @llvm.dbg.value(metadata, metadata, metadata) #2 -declare void @escape(i32*) - -@global = external global i32, align 4 +@global = external dso_local local_unnamed_addr global i32, align 4 ; Function Attrs: nounwind uwtable -define void @f(i32 %x) #0 !dbg !8 { +define dso_local void @f(i32 %x) local_unnamed_addr #0 !dbg !8 { entry: %x.addr = alloca i32, align 4 - store i32 %x, i32* %x.addr, align 4 - call void @llvm.dbg.addr(metadata i32* %x.addr, metadata !13, metadata !DIExpression()), !dbg !18 - call void @escape(i32* %x.addr), !dbg !19 - call void @llvm.dbg.value(metadata i32 1, metadata !13, metadata !DIExpression()), !dbg !20 - store i32 1, i32* @global, align 4, !dbg !22 - call void @llvm.dbg.addr(metadata i32* %x.addr, metadata !13, metadata !DIExpression()), !dbg !23 - store i32 2, i32* %x.addr, align 4, !dbg !23 - call void @escape(i32* %x.addr), !dbg !24 - ret void, !dbg !25 + call void @llvm.dbg.value(metadata i32 %x, metadata !13, metadata !DIExpression()), !dbg !14 + store i32 %x, i32* %x.addr, align 4, !tbaa !15 + call void @llvm.dbg.value(metadata i32* %x.addr, metadata !13, metadata !DIExpression(DW_OP_deref)), !dbg !14 + call void @escape(i32* nonnull %x.addr) #3, !dbg !19 + call void @llvm.dbg.value(metadata i32 1, metadata !13, metadata !DIExpression()), !dbg !14 + store i32 1, i32* @global, align 4, !dbg !20, !tbaa !15 + call void @llvm.dbg.value(metadata i32 2, metadata !13, metadata !DIExpression()), !dbg !14 + store i32 2, i32* %x.addr, align 4, !dbg !21, !tbaa !15 + call void @llvm.dbg.value(metadata i32* %x.addr, metadata !13, metadata !DIExpression(DW_OP_deref)), !dbg !14 + call void @escape(i32* nonnull %x.addr) #3, !dbg !22 + ret void, !dbg !23 } +declare dso_local void @escape(i32*) local_unnamed_addr #1 + +; Function Attrs: nounwind readnone speculatable +declare void @llvm.dbg.value(metadata, metadata, metadata) #2 + ; ASM-LABEL: f: # @f +; ASM: #DEBUG_VALUE: f:x <- $ecx ; ASM: movl %ecx, [[OFF_X:[0-9]+]](%rsp) -; ASM: #DEBUG_VALUE: f:x <- [DW_OP_plus_uconst [[OFF_X]]] [$rsp+0] +; ASM: #DEBUG_VALUE: f:x <- [DW_OP_plus_uconst [[OFF_X]], DW_OP_deref] $rsp ; ASM: callq escape ; ASM: #DEBUG_VALUE: f:x <- 1 ; ASM: movl $1, global(%rip) -; FIXME: Needs a fix to LiveDebugVariables -; ASMX: #DEBUG_VALUE: f:x <- [DW_OP_plus_uconst [[OFF_X]]] [$rsp+0] +; ASM: #DEBUG_VALUE: f:x <- 2 ; ASM: movl $2, [[OFF_X]](%rsp) +; FIXME: Needs a fix to LiveDebugVariables +; ASMX: #DEBUG_VALUE: f:x <- [DW_OP_plus_uconst [[OFF_X]], DW_OP_deref] $rsp ; ASM: callq escape ; ASM: retq ; DWARF: DW_TAG_formal_parameter ; DWARF-NEXT: DW_AT_location (0x00000000 + +; DWARF-NEXT: {{[^:]*}}: DW_OP_reg2 RCX ; DWARF-NEXT: {{[^:]*}}: DW_OP_breg7 RSP+{{[0-9]+}} ; DWARF-NEXT: {{[^:]*}}: DW_OP_consts +1, DW_OP_stack_value -; DWARF-NEXT: {{[^:]*}}: DW_OP_breg7 RSP+{{[0-9]+}}) +; DWARF-NEXT: {{[^:]*}}: DW_OP_consts +2, DW_OP_stack_value +; FIXME: Needs a fix to LiveDebugVariables +; DWARFX-NEXT: {{[^:]*}}: DW_OP_breg7 RSP+{{[0-9]+}} ; DWARF-NEXT: DW_AT_name ("x") attributes #0 = { nounwind uwtable } +attributes #1 = { nounwind uwtable } attributes #2 = { nounwind readnone speculatable } +attributes #3 = { nounwind } !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!3, !4, !5, !6} !llvm.ident = !{!7} -!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 6.0.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) -!1 = !DIFile(filename: "dse.c", directory: "C:\5Csrc\5Cllvm-project\5Cbuild") +!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 9.0.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None) +!1 = !DIFile(filename: "dse.c", directory: "") !2 = !{} !3 = !{i32 2, !"Dwarf Version", i32 4} !4 = !{i32 2, !"Debug Info Version", i32 3} !5 = !{i32 1, !"wchar_size", i32 2} !6 = !{i32 7, !"PIC Level", i32 2} -!7 = !{!"clang version 6.0.0 "} -!8 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 3, type: !9, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !12) +!7 = !{!"clang version 9.0.0 "} +!8 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 4, type: !9, scopeLine: 4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !12) !9 = !DISubroutineType(types: !10) !10 = !{null, !11} !11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) !12 = !{!13} -!13 = !DILocalVariable(name: "x", arg: 1, scope: !8, file: !1, line: 3, type: !11) -!14 = !{!15, !15, i64 0} -!15 = !{!"int", !16, i64 0} -!16 = !{!"omnipotent char", !17, i64 0} -!17 = !{!"Simple C/C++ TBAA"} -!18 = !DILocation(line: 3, column: 12, scope: !8) -!19 = !DILocation(line: 4, column: 3, scope: !8) -!20 = !DILocation(line: 5, column: 5, scope: !8) -!21 = !DILocation(line: 6, column: 12, scope: !8) -!22 = !DILocation(line: 6, column: 10, scope: !8) -!23 = !DILocation(line: 7, column: 5, scope: !8) -!24 = !DILocation(line: 8, column: 3, scope: !8) -!25 = !DILocation(line: 9, column: 1, scope: !8) +!13 = !DILocalVariable(name: "x", arg: 1, scope: !8, file: !1, line: 4, type: !11) +!14 = !DILocation(line: 0, scope: !8) +!15 = !{!16, !16, i64 0} +!16 = !{!"int", !17, i64 0} +!17 = !{!"omnipotent char", !18, i64 0} +!18 = !{!"Simple C/C++ TBAA"} +!19 = !DILocation(line: 5, column: 3, scope: !8) +!20 = !DILocation(line: 7, column: 10, scope: !8) +!21 = !DILocation(line: 8, column: 5, scope: !8) +!22 = !DILocation(line: 9, column: 3, scope: !8) +!23 = !DILocation(line: 10, column: 1, scope: !8) + Index: llvm/test/DebugInfo/X86/live-debug-variables.ll =================================================================== --- llvm/test/DebugInfo/X86/live-debug-variables.ll +++ llvm/test/DebugInfo/X86/live-debug-variables.ll @@ -25,7 +25,7 @@ ; CHECK: .debug_loc contents: ; CHECK-NEXT: 0x00000000: ; We currently emit an entry for the function prologue, too, which could be optimized away. -; CHECK: [0x0000000000000018, 0x0000000000000072): DW_OP_reg3 RBX +; CHECK: [0x0000000000000010, 0x0000000000000072): DW_OP_reg3 RBX ; We should only have one entry inside the function. ; CHECK-NOT: :