This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix handling of target flags when commuting instruction
ClosedPublic

Authored by arsenm on Jul 1 2020, 7:49 AM.

Details

Summary

If the original register operand had a subregister, it wasn't getting
cleared. This resulted in reinterpreted the subreg index as
unrecognized target flags, which produced unparseable MIR.

Diff Detail

Event Timeline

arsenm created this revision.Jul 1 2020, 7:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2020, 7:49 AM
rampitec accepted this revision.Jul 1 2020, 9:04 AM
This revision is now accepted and ready to land.Jul 1 2020, 9:04 AM