[llvm] [DebugInfo][DWARF] Set is_stmt on first non-line-0 instruction in BB (PR #105524)
Paul T Robinson via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 08:18:51 PDT 2024
================
@@ -0,0 +1,38 @@
+;; Checks that when an instruction at the start of a BasicBlock has the same
+;; DebugLoc as the instruction at the end of the previous BasicBlock, we add
+;; is_stmt to the new line, to ensure that we still step on it if we arrive from
+;; a BasicBlock other than the immediately preceding one.
+
+; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump --debug-line - | FileCheck %s
+
+; CHECK: {{0x[0-9a-f]+}} 13 5 {{.+}} is_stmt
+; CHECK-NEXT: {{0x[0-9a-f]+}} 13 25 {{.+}} is_stmt
----------------
pogo59 wrote:
Oh right, `!dbg` isn't inherited the way it is for asm.
But, you could use the same `!dbg` for both, showing that it really is the BB that triggers it.
https://github.com/llvm/llvm-project/pull/105524
More information about the llvm-commits
mailing list