Home | History | Annotate | Download | only in TailCallElim
      1 ; Though this case seems to be fairly unlikely to occur in the wild, someone
      2 ; plunked it into the demo script, so maybe they care about it.
      3 ;
      4 ; RUN: opt < %s -tailcallelim -S | not grep call
      5 
      6 define i32 @aaa(i32 %c) {
      7 entry:
      8 	%tmp.1 = icmp eq i32 %c, 0		; <i1> [#uses=1]
      9 	br i1 %tmp.1, label %return, label %else
     10 else:		; preds = %entry
     11 	%tmp.5 = add i32 %c, -1		; <i32> [#uses=1]
     12 	%tmp.3 = call i32 @aaa( i32 %tmp.5 )		; <i32> [#uses=0]
     13 	ret i32 0
     14 return:		; preds = %entry
     15 	ret i32 0
     16 }
     17 
     18