[llvm] r336825 - AMDGPU/NFC: Use already available explicit kernarg
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 11 10:27:17 PDT 2018
Author: kzhuravl
Date: Wed Jul 11 10:27:17 2018
New Revision: 336825
URL: http://llvm.org/viewvc/llvm-project?rev=336825&view=rev
Log:
AMDGPU/NFC: Use already available explicit kernarg
size instead of calculating it again when filling
out the metadata.
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp?rev=336825&r1=336824&r2=336825&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp Wed Jul 11 10:27:17 2018
@@ -212,7 +212,8 @@ Kernel::CodeProps::Metadata MetadataStre
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 =
More information about the llvm-commits
mailing list