This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/AMDHSA: Set COMPUTE_PGM_RSRC2:LDS_SIZE to 0
ClosedPublic

Authored by kzhuravl on Apr 27 2017, 3:37 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl created this revision.Apr 27 2017, 3:37 PM
arsenm added inline comments.Apr 27 2017, 3:45 PM
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
633 ↗(On Diff #97006)

Needs a comment

test/CodeGen/AMDGPU/lds-size.ll
15 ↗(On Diff #97006)

Why do we even print this if it's always going to be 0? why is it in the kernel_code_t?

kzhuravl updated this revision to Diff 97022.Apr 27 2017, 4:50 PM
kzhuravl marked an inline comment as done.

Address review feedback.

kzhuravl added inline comments.Apr 27 2017, 4:52 PM
test/CodeGen/AMDGPU/lds-size.ll
15 ↗(On Diff #97006)

Why do we even print this if it's always going to be 0?

I agree that we can omit printing it here. We are doing some restructuring in amd_kernel_code_t area. Can we include this topic there?

why is it in the kernel_code_t?

granulated_lds_size is a part of COMPUTE_PGM_RSRC2 register, and we cannot omit it from there.

arsenm accepted this revision.May 2 2017, 10:15 AM

LGTM

This revision is now accepted and ready to land.May 2 2017, 10:15 AM
This revision was automatically updated to reflect the committed changes.