bolt/deps/llvm-18.1.8/llvm/test/Transforms/TailCallElim/debugloc.ll
2025-02-14 19:21:04 +01:00

17 lines
521 B
LLVM

; RUN: opt < %s -passes=debugify,tailcallelim -S | FileCheck %s
; RUN: opt < %s -passes=debugify,tailcallelim -S --try-experimental-debuginfo-iterators | FileCheck %s
define void @foo() {
entry:
; CHECK-LABEL: entry:
; CHECK: br label %tailrecurse, !dbg ![[DbgLoc:[0-9]+]]
call void @foo() ;; line 1
ret void
; CHECK-LABEL: tailrecurse:
; CHECK: br label %tailrecurse, !dbg ![[DbgLoc]]
}
;; Make sure tailrecurse has the call instruction's DL
; CHECK: ![[DbgLoc]] = !DILocation(line: 1