This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Relax 32-bit SGPR register class
ClosedPublic

Authored by arsenm on Oct 10 2019, 11:30 AM.

Details

Summary

Mostly use SReg_32 instead of SReg_32_XM0 for arbitrary values. This
will allow the register coalescer to do a better job eliminating
copies to m0.

For GlobalISel, as a terrible hack, use SGPR_32 for things that should
use SCC until booleans are solved.

Diff Detail

Event Timeline

arsenm created this revision.Oct 10 2019, 11:30 AM
This revision is now accepted and ready to land.Oct 10 2019, 11:35 AM
arsenm closed this revision.Oct 18 2019, 11:24 AM

r375267