This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] divergence patterns for the BUILD_VECTOR i16, undef expansion.
ClosedPublic

Authored by alex-t on Mar 19 2022, 8:15 AM.

Details

Summary

BUILD_VECTOR of i16 and undef gets expanded to the COPY_TO_REGCLASS.

         The latter is further lowererd to the copy instructions.
	 We need to provide the correct register class for the uniform and divergent BUILD_VECTOR nodes
	 to avoid VGPR to SGPR copies.

Diff Detail

Event Timeline

alex-t created this revision.Mar 19 2022, 8:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2022, 8:15 AM
alex-t requested review of this revision.Mar 19 2022, 8:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2022, 8:15 AM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Mar 21 2022, 11:44 AM
This revision is now accepted and ready to land.Mar 21 2022, 11:44 AM
This revision was landed with ongoing or failed builds.Mar 21 2022, 1:11 PM
This revision was automatically updated to reflect the committed changes.