summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline/zero-cost.ll
blob: 6f5348ff395add4da9a1bf4c2b542ee13d56c7eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: opt -inline -S %s | FileCheck %s
; RUN: opt -passes='cgscc(inline)' -S %s | FileCheck %s

define void @f() {
entry:
  tail call void @g()
  unreachable

; CHECK-LABEL: @f
; CHECK-NOT: call
; CHECK: unreachable
}

define void @g() {
entry:
  unreachable
}

OpenPOWER on IntegriCloud