This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Optimize out implicit kernarg argument allocation if unused
ClosedPublic

Authored by arsenm on Oct 25 2021, 1:12 PM.

Details

Reviewers
rampitec
b-sumner
Summary

We already annotate whether llvm.amdgcn.implicitarg.ptr is known to be
unused. Start using it to avoid allocating the implicit arguments if
unneeded.

Diff Detail

Event Timeline

arsenm created this revision.Oct 25 2021, 1:12 PM
arsenm requested review of this revision.Oct 25 2021, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2021, 1:12 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 382099.Oct 25 2021, 1:13 PM

Attach right version

This revision is now accepted and ready to land.Oct 25 2021, 1:15 PM
arsenm updated this revision to Diff 382102.Oct 25 2021, 1:18 PM

Use subtarget size check in another place