llvm.org GIT mirror llvm / 8d9455d test / Transforms / TailCallElim / inf-recursion.ll
8d9455d

Tree @8d9455d (Download .tar.gz)

inf-recursion.ll @8d9455draw · history · blame

1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s | opt -tailcallelim | 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
}