llvm-for-llvmta/test/Transforms/TailCallElim/debugloc.ll

17 lines
412 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: opt < %s -debugify -tailcallelim -S | 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