2016-12-27 10:47:37 +08:00
|
|
|
; RUN: opt < %s -inline -S | FileCheck %s
|
2016-12-27 15:18:43 +08:00
|
|
|
; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
|
2008-09-03 06:16:13 +08:00
|
|
|
|
2008-09-27 07:51:19 +08:00
|
|
|
define i32 @fn2() noinline {
|
2016-12-27 10:47:37 +08:00
|
|
|
; CHECK-LABEL: define i32 @fn2()
|
|
|
|
entry:
|
2008-09-03 06:16:13 +08:00
|
|
|
ret i32 1
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32 @fn3() {
|
2016-12-27 10:47:37 +08:00
|
|
|
; CHECK-LABEL: define i32 @fn3()
|
|
|
|
entry:
|
|
|
|
%r = call i32 @fn2()
|
|
|
|
; CHECK: call i32 @fn2()
|
|
|
|
|
|
|
|
ret i32 %r
|
2008-09-03 06:16:13 +08:00
|
|
|
}
|