size instead of calculating it again when filling
out the metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336825
91177308-0d34-0410-b5e6-
96231b3b80d8
if (F.getCallingConv() != CallingConv::AMDGPU_KERNEL)
return HSACodeProps;
- HSACodeProps.mKernargSegmentSize = STM.getKernArgSegmentSize(F);
+ HSACodeProps.mKernargSegmentSize =
+ STM.getKernArgSegmentSize(F, MFI.getExplicitKernArgSize());
HSACodeProps.mGroupSegmentFixedSize = ProgramInfo.LDSSize;
HSACodeProps.mPrivateSegmentFixedSize = ProgramInfo.ScratchSize;
HSACodeProps.mKernargSegmentAlign =