AMDGPU/NFC: Use already available explicit kernarg
size instead of calculating it again when filling out the metadata. llvm-svn: 336825
This commit is contained in:
parent
c094d23f6f
commit
bde59e9989
|
@ -212,7 +212,8 @@ Kernel::CodeProps::Metadata MetadataStreamer::getHSACodeProps(
|
|||
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 =
|
||||
|
|
Loading…
Reference in New Issue