xref: /llvm-project/llvm/test/Transforms/Inline/zero-cost.ll (revision e5369823bc0655806469724335d0ca5a4c17d8c7)
1; RUN: opt -passes=inline -S %s | FileCheck %s
2; RUN: opt -passes='cgscc(inline)' -S %s | FileCheck %s
3
4define void @f() {
5entry:
6  tail call void @g()
7  unreachable
8
9; CHECK-LABEL: @f
10; CHECK-NOT: call
11; CHECK: unreachable
12}
13
14define void @g() {
15entry:
16  unreachable
17}
18
19