xref: /llvm-project/llvm/test/Transforms/TailCallElim/debugloc.ll (revision 912e2c47589d7f4de3e59e99920fe9a60281db2a)
1; RUN: opt < %s -passes=debugify,tailcallelim -S | FileCheck %s
2; RUN: opt < %s -passes=debugify,tailcallelim -S --try-experimental-debuginfo-iterators | FileCheck %s
3
4define void @foo() {
5entry:
6; CHECK-LABEL: entry:
7; CHECK: br label %tailrecurse{{$}}
8
9  call void @foo()                            ;; line 1
10  ret void
11
12; CHECK-LABEL: tailrecurse:
13; CHECK: br label %tailrecurse, !dbg ![[DbgLoc:[0-9]+]]
14}
15
16;; Make sure tailrecurse has the call instruction's DL
17; CHECK: ![[DbgLoc]] = !DILocation(line: 1
18