This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix kernel LDS lowering for constants
ClosedPublic

Authored by rampitec on May 26 2021, 11:06 AM.

Details

Summary

There is a trivial but severe bug in the recent code collecting
LDS globals used by kernel. It aborts scan on the first constant
without scanning further uses. That leads to LDS overallocation
with multiple kernels in certain cases.

Diff Detail

Event Timeline

rampitec created this revision.May 26 2021, 11:06 AM
rampitec requested review of this revision.May 26 2021, 11:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2021, 11:06 AM
Herald added a subscriber: wdng. · View Herald Transcript
ronlieb accepted this revision.May 26 2021, 11:10 AM
This revision is now accepted and ready to land.May 26 2021, 11:10 AM
JonChesterfield accepted this revision.May 26 2021, 11:26 AM

Ouch. Good to catch that quickly, thanks

This revision was landed with ongoing or failed builds.May 26 2021, 11:35 AM
This revision was automatically updated to reflect the committed changes.