We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0718158 commit 6f7b1a4Copy full SHA for 6f7b1a4
llvm/test/Transforms/Inline/inline-recursive-fn2.ll
@@ -1,6 +1,9 @@
1
; REQUIRES: asserts
2
; RUN: opt -passes='cgscc(inline),instcombine,cgscc(inline)' -S -debug-only=inline -disable-output < %s 2>&1 | FileCheck %s
3
4
+; This test shows that the recursive function will not get simplified
5
+; unless the caller is the function itself, not another different caller.
6
+
7
; CHECK: Inlining calls in: test
8
; CHECK: Function size: 2
9
; CHECK: NOT Inlining (cost=never): recursive, Call: %call = tail call float @inline_rec_true_successor(float %x, float %scale)
0 commit comments