brintos

brintos / llvm-project-archived public Read only

0
0
Text · 555 B · 7a3a8f9 Raw
19 lines · plain
1; RUN: opt < %s -passes=debugify,tailcallelim -S | FileCheck %s2 3define i32 @foo() {4entry:5; CHECK-LABEL: entry:6; CHECK: br label %tailrecurse{{$}}7 8  %ret = call i32 @foo()                          ;; line 19  ret i32 0                                       ;; line 210 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 DL17; CHECK: ![[DbgLoc1]] = !DILocation(line: 118; CHECK: ![[DbgLoc2]] = !DILocation(line: 219