Skip to content

Commit 381535d

Browse files
author
Anton Sidorenko
committed
Stack calls are not necessary to be noinline
If the stack call must not be inlined, NoInline attribute should be added by the FE, but not by the SPIRV reader adapter.
1 parent 8ee8793 commit 381535d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

GenXIntrinsics/lib/GenXIntrinsics/GenXSPIRVReaderAdaptor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,6 @@ bool GenXSPIRVReaderAdaptor::processVCFunctionAttributes(Function &F) {
562562

563563
if (VCINTR::AttributeList::hasFnAttr(Attrs, VCFunctionMD::VCStackCall)) {
564564
F.addFnAttr(FunctionMD::CMStackCall);
565-
F.addFnAttr(Attribute::NoInline);
566565
dropFnAttribute(F, VCFunctionMD::VCStackCall);
567566
}
568567

GenXIntrinsics/test/Adaptors/fun_attributes_transform_reader.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ define spir_kernel void @test_VCSLMSize() #6 {
4848
ret void
4949
}
5050

51-
; CHECK-DAG: attributes #[[FATR_STACK_CALL_ATTR_IDX]] = { noinline "CMStackCall" }
51+
; CHECK-DAG: attributes #[[FATR_STACK_CALL_ATTR_IDX]] = { "CMStackCall" }
5252
; CHECK-DAG: attributes #[[FATR_CALLABLE_ATTR_IDX]] = { "CMCallable" }
5353
; CHECK-DAG: attributes #[[FATR_FC_ENTRY_IDX]] = { "CMEntry" }
5454
; CHECK-DAG: attributes #[[FATR_SIMT_CALL_IDX]] = { "CMGenxSIMT" }

0 commit comments

Comments
 (0)