diff options
Diffstat (limited to 'test/Transforms/TailCallElim/inf-recursion.ll')
-rw-r--r-- | test/Transforms/TailCallElim/inf-recursion.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/TailCallElim/inf-recursion.ll b/test/Transforms/TailCallElim/inf-recursion.ll new file mode 100644 index 000000000000..fe00f4a764e9 --- /dev/null +++ b/test/Transforms/TailCallElim/inf-recursion.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -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 +} + |