1 ; RUN: opt < %s -tailcallelim -S | FileCheck %s
3 define i32 @foo(i32 %x) {
4 ; CHECK: define i32 @foo
6 %cond = icmp ugt i32 %x, 0 ; <i1> [#uses=1]
7 br i1 %cond, label %return, label %body
10 %y = add i32 %x, 1 ; <i32> [#uses=1]
11 %tmp = call i32 @foo(i32 %y) ; <i32> [#uses=0]
15 return: ; preds = %entry