This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix failures from overflowing uint8_t number of operands
ClosedPublic

Authored by arsenm on Jul 22 2020, 4:25 PM.

Details

Summary

If the operand index exceeded the limit of unsigned char, it wrapped
and would point to the wrong operand. Increase the size of the operand
index field to avoid this, and also don't bother trying to fold into
implicit operands.

Diff Detail

Event Timeline

arsenm created this revision.Jul 22 2020, 4:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2020, 4:25 PM
This revision is now accepted and ready to land.Jul 23 2020, 1:21 AM