Files
clang-p2996/llvm/test/Transforms/Inline/inline-remark-mandatory.ll
Mircea Trofin 7d541eb4d4 [inliner] Mandatory inlining decisions produce remarks
This also removes the need to disable the mandatory inlining phase in
tests.

In a departure from the previous remark, we don't output a 'cost' in
this case, because there's no such thing. We just report that inlining
happened because of the attribute.

Differential Revision: https://reviews.llvm.org/D110891
2021-10-05 14:01:25 -07:00

17 lines
438 B
LLVM

; RUN: opt -passes="cgscc(inline<only-mandatory>)" -pass-remarks-missed=inline -S < %s 2>&1 | FileCheck %s
declare void @personalityFn1();
declare void @personalityFn2();
define i32 @a() personality void ()* @personalityFn1 {
ret i32 1
}
define i32 @b() personality void ()* @personalityFn2 {
%r = call i32 @a() alwaysinline
ret i32 %r
}
; CHECK: remark: {{.*}} 'a' is not AlwaysInline into 'b': incompatible personality