| 1 |
; RUN: opt < %s -passes=debugify,tailcallelim -S | FileCheck %s |
| 2 |
|
| 3 |
define i32 @foo() { |
| 4 |
entry: |
| 5 |
; CHECK-LABEL: entry: |
| 6 |
; CHECK: br label %tailrecurse{{$}} |
| 7 |
|
| 8 |
%ret = call i32 @foo() ;; line 1 |
| 9 |
ret i32 0 ;; line 2 |
| 10 |
|
| 11 |
; CHECK-LABEL: tailrecurse: |
| 12 |
; CHECK: select i1 {{.+}}, !dbg ![[DbgLoc2:[0-9]+]] |
| 13 |
; CHECK: br label %tailrecurse, !dbg ![[DbgLoc1:[0-9]+]] |
| 14 |
} |
| 15 |
|
| 16 |
;; Make sure tailrecurse has the call instruction's DL |
| 17 |
; CHECK: ![[DbgLoc1]] = !DILocation(line: 1 |
| 18 |
; CHECK: ![[DbgLoc2]] = !DILocation(line: 2 |