xref: /llvm-project/llvm/test/Transforms/Inline/pr46945.ll (revision e8049dc3c8a46ccd75ce2a4f438d695d20feb660)
1; RUN: opt %s -o - -S -passes='default<O2>' | FileCheck %s
2; RUN: opt %s -o - -S -passes=inliner-wrapper | FileCheck %s
3
4; CHECK-NOT: call void @b()
5define void @b() alwaysinline {
6entry:
7  br label %for.cond
8
9for.cond:
10  call void @a()
11  br label %for.cond
12}
13
14define void @a() {
15entry:
16  call void @b()
17  ret void
18}
19