llvm.org GIT mirror llvm / 63c08be
New testcase, this should be -tailcallelim'inated git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10311 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 19 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; This function contains intervening instructions which should be moved out of the way
1 ; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | not grep call
2
3 int %Test(int %X) {
4 entry:
5 %tmp.1 = seteq int %X, 0
6 br bool %tmp.1, label %then.0, label %endif.0
7
8 then.0:
9 %tmp.4 = add int %X, 1
10 ret int %tmp.4
11
12 endif.0:
13 %tmp.10 = add int %X, -1
14 %tmp.8 = call int %Test(int %tmp.10)
15 %DUMMY = add int %X, 1 ;; This should not prevent elimination
16 ret int %tmp.8
17 }
18