These date back to when the non-intrinsic format of variable locations was still being tested and was behind a compile-time flag, so not all builds / bots would correctly run them. The solution at the time, to get at least some test coverage, was to have tests opt-in to non-intrinsic debug-info if it was built into LLVM. Nowadays, non-intrinsic format is the default and has been on for more than a year, there's no need for this flag to exist. (I've downgraded the flag from "try" to explicitly requesting non-intrinsic format in some places, so that we can deal with tests that are explicitly about non-intrinsic format in their own commit).
17 lines
405 B
LLVM
17 lines
405 B
LLVM
; RUN: opt < %s -passes=debugify,tailcallelim -S | FileCheck %s
|
|
|
|
define void @foo() {
|
|
entry:
|
|
; CHECK-LABEL: entry:
|
|
; CHECK: br label %tailrecurse{{$}}
|
|
|
|
call void @foo() ;; line 1
|
|
ret void
|
|
|
|
; CHECK-LABEL: tailrecurse:
|
|
; CHECK: br label %tailrecurse, !dbg ![[DbgLoc:[0-9]+]]
|
|
}
|
|
|
|
;; Make sure tailrecurse has the call instruction's DL
|
|
; CHECK: ![[DbgLoc]] = !DILocation(line: 1
|