summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline/zero-cost.ll
blob: 8e7194a1963b7792f353152a7f58ecbb0c5f228a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: opt -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