summaryrefslogtreecommitdiff
path: root/test/Transforms/TailCallElim/inf-recursion.ll
blob: b2ca8d5b15edaa750462634e8519a50072267aa2 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: opt %s -tailcallelim | llvm-dis | grep call
; Don't turn this into an infinite loop, this is probably the implementation
; of fabs and we expect the codegen to lower fabs.

define double @fabs(double %f) {
entry:
        %tmp2 = call double @fabs( double %f )          ; <double> [#uses=1]
        ret double %tmp2
}