bolt/deps/llvm-18.1.8/llvm/test/Transforms/Inline/2008-09-02-NoInline.ll
2025-02-14 19:21:04 +01:00

17 lines
316 B
LLVM

; RUN: opt < %s -passes=inline -S | FileCheck %s
; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
define i32 @fn2() noinline {
; CHECK-LABEL: define i32 @fn2()
entry:
ret i32 1
}
define i32 @fn3() {
; CHECK-LABEL: define i32 @fn3()
entry:
%r = call i32 @fn2()
; CHECK: call i32 @fn2()
ret i32 %r
}