Skip to content

Commit 6f7b1a4

Browse files
committed
Rebase. Add explanation comment to the test file
1 parent 0718158 commit 6f7b1a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/test/Transforms/Inline/inline-recursive-fn2.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
; REQUIRES: asserts
22
; RUN: opt -passes='cgscc(inline),instcombine,cgscc(inline)' -S -debug-only=inline -disable-output < %s 2>&1 | FileCheck %s
33

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+
47
; CHECK: Inlining calls in: test
58
; CHECK: Function size: 2
69
; CHECK: NOT Inlining (cost=never): recursive, Call: %call = tail call float @inline_rec_true_successor(float %x, float %scale)

0 commit comments

Comments
 (0)