This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix too many constants with flat scratch
ClosedPublic

Authored by sebastian-ne on Aug 19 2021, 5:25 AM.

Details

Summary

Prevent SIFoldOperands from creating SALU instructions with a constant
and a frame index. Previously, only one operand was checked to be a
frame index, leading to too many constants when flat scratch is enabled
and stack offsets are large.

Diff Detail

Event Timeline

sebastian-ne created this revision.Aug 19 2021, 5:25 AM
sebastian-ne requested review of this revision.Aug 19 2021, 5:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2021, 5:25 AM
This revision is now accepted and ready to land.Aug 19 2021, 11:22 AM
This revision was landed with ongoing or failed builds.Aug 19 2021, 11:34 PM
This revision was automatically updated to reflect the committed changes.