Page MenuHomePhabricator

[AMDGPU] Avoid an illegal operand in si-shrink-instructions
ClosedPublic

Authored by piotr on Jan 27 2021, 7:18 AM.

Details

Summary

Before the patch it was possible to trigger a constant bus
violation when folding immediates into a shrunk instruction.

The patch adds a check to enforce the legality of the new operand.

Diff Detail

Event Timeline

piotr created this revision.Jan 27 2021, 7:18 AM
piotr requested review of this revision.Jan 27 2021, 7:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2021, 7:18 AM
arsenm accepted this revision.Jan 27 2021, 8:16 AM
This revision is now accepted and ready to land.Jan 27 2021, 8:16 AM
This revision was landed with ongoing or failed builds.Jan 27 2021, 11:50 PM
This revision was automatically updated to reflect the committed changes.