1 ; RUN: opt -S -debug-only=iroutliner -p=iroutliner -ir-outlining-no-cost %s -o - 2>&1 | FileCheck %s
4 ; CHECK-NOT: ... Skipping function with nooutline attribute: outlinable
5 ; CHECK-NOT: @outlined_ir_func
6 ; CHECK: ... Skipping function with nooutline attribute: nooutline1
7 ; CHECK: ... Skipping function with nooutline attribute: nooutline2
9 define void @outlinable() { ret void }
11 define i8 @nooutline1(ptr noalias %s, ptr noalias %d, i64 %len) "nooutline" {
14 call void @llvm.memcpy.p0i8.p0i8.i64(ptr %d, ptr %s, i64 %len, i1 false)
16 %ret = load i8, ptr %s
20 define i8 @nooutline2(ptr noalias %s, ptr noalias %d, i64 %len) "nooutline" {
23 call void @llvm.memcpy.p0i8.p0i8.i64(ptr %d, ptr %s, i64 %len, i1 false)
25 %ret = load i8, ptr %s
29 declare void @llvm.memcpy.p0i8.p0i8.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1)