2 ; Duplicate the return into if.end to enable TCE.
3 ; RUN: opt -tailcallelim -verify-dom-info -stats -disable-output < %s 2>&1 | FileCheck %s
5 ; CHECK: Number of return duplicated
7 define i32 @fib(i32 %n) nounwind ssp {
9 %cmp = icmp slt i32 %n, 2
10 br i1 %cmp, label %if.then, label %if.end
12 if.then: ; preds = %entry
15 if.end: ; preds = %entry
16 %sub = add nsw i32 %n, -2
17 %call = call i32 @fib(i32 %sub)
18 %sub3 = add nsw i32 %n, -1
19 %call4 = call i32 @fib(i32 %sub3)
20 %add = add nsw i32 %call, %call4
23 return: ; preds = %if.end, %if.then
24 %retval.0 = phi i32 [ 1, %if.then ], [ %add, %if.end ]