blob: 825999593ac14d78a691472238a36321daa6da38 [file] [log] [blame]
Easwaran Ramancbd39892016-04-13 19:43:31 +00001; RUN: opt < %s -inline -S | FileCheck %s
Chandler Carruth625038d2016-12-27 07:18:43 +00002; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
Easwaran Ramancbd39892016-04-13 19:43:31 +00003
4; CHECK-LABEL: caller
5; CHECK: call void @callee
6define void @caller(i32 %a, i1 %b) #0 {
7 call void @callee(i32 %a, i1 %b)
8 unreachable
9}
10
11define void @callee(i32 %a, i1 %b) {
James Molloy6df8f272016-11-14 11:14:41 +000012 call void @extern()
Easwaran Ramancbd39892016-04-13 19:43:31 +000013 call void asm sideeffect "", ""()
14 br i1 %b, label %bb1, label %bb2
15bb1:
16 call void asm sideeffect "", ""()
17 ret void
18bb2:
19 call void asm sideeffect "", ""()
20 ret void
21}
James Molloy6df8f272016-11-14 11:14:41 +000022
Chandler Carruth625038d2016-12-27 07:18:43 +000023declare void @extern()