1; RUN: opt -S -debug-only=iroutliner -p=iroutliner -ir-outlining-no-cost %s -o - 2>&1 | FileCheck %s 2; REQUIRES: asserts 3 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 8 9define void @outlinable() { ret void } 10 11define i8 @nooutline1(ptr noalias %s, ptr noalias %d, i64 %len) "nooutline" { 12 %a = load i8, ptr %s 13 %b = load i8, ptr %d 14 call void @llvm.memcpy.p0.p0.i64(ptr %d, ptr %s, i64 %len, i1 false) 15 %c = add i8 %a, %b 16 %ret = load i8, ptr %s 17 ret i8 %ret 18} 19 20define i8 @nooutline2(ptr noalias %s, ptr noalias %d, i64 %len) "nooutline" { 21 %a = load i8, ptr %s 22 %b = load i8, ptr %d 23 call void @llvm.memcpy.p0.p0.i64(ptr %d, ptr %s, i64 %len, i1 false) 24 %c = add i8 %a, %b 25 %ret = load i8, ptr %s 26 ret i8 %ret 27} 28 29declare void @llvm.memcpy.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1) 30 31