This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix adjustWritemask subreg handling
ClosedPublic

Authored by rampitec on Dec 23 2020, 2:24 PM.

Details

Summary

If we happen to extract a non-dword subreg that breaks the
logic of the function and it may shrink the dmask because
it does not recognize the use of a lane(s).

This bug is next to impossible to trigger with the current
lowering in the BE, but it breaks in one of my future patches.

Diff Detail

Event Timeline

rampitec created this revision.Dec 23 2020, 2:24 PM
rampitec requested review of this revision.Dec 23 2020, 2:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 23 2020, 2:24 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm accepted this revision.Dec 23 2020, 2:41 PM
This revision is now accepted and ready to land.Dec 23 2020, 2:41 PM
This revision was automatically updated to reflect the committed changes.