1 ; Duplicate the return into if.end to enable TCE.
2 ; RUN: opt %s -tailcallelim -stats -disable-output |& grep {Number of return duplicated}
4 define i32 @fib(i32 %n) nounwind ssp {
6 %cmp = icmp slt i32 %n, 2
7 br i1 %cmp, label %if.then, label %if.end
9 if.then: ; preds = %entry
12 if.end: ; preds = %entry
13 %sub = add nsw i32 %n, -2
14 %call = call i32 @fib(i32 %sub)
15 %sub3 = add nsw i32 %n, -1
16 %call4 = call i32 @fib(i32 %sub3)
17 %add = add nsw i32 %call, %call4
20 return: ; preds = %if.end, %if.then
21 %retval.0 = phi i32 [ 1, %if.then ], [ %add, %if.end ]