This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Make IMPLICIT_DEF of all sizes < 512 legal.
ClosedPublic

Authored by tstellar on Jun 29 2018, 10:28 AM.

Details

Summary

We could split sizes that are not power of two into smaller sized
G_IMPLICIT_DEF instructions, but this ends up generating
G_MERGE_VALUES instructions which we then have to handle in the instruction
selector. Since G_IMPLICIT_DEF is really a no-op it's easier just to
keep everything that can fit into a register legal.

Diff Detail

Event Timeline

tstellar created this revision.Jun 29 2018, 10:28 AM
arsenm accepted this revision.Jun 29 2018, 10:51 AM

LGTM

This revision is now accepted and ready to land.Jun 29 2018, 10:51 AM
This revision was automatically updated to reflect the committed changes.