This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Select G_FREEZE
ClosedPublic

Authored by Petar.Avramovic on Jul 2 2020, 3:43 AM.

Details

Summary

Select G_FREEZE in the same way that COPY is selected.

Diff Detail

Event Timeline

Petar.Avramovic created this revision.Jul 2 2020, 3:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2020, 3:43 AM
arsenm requested changes to this revision.Jul 6 2020, 11:01 AM
arsenm added inline comments.
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-freeze.mir
8

These are all VGPR cases; should also test AGPR, SGPR, and vcc cases

This revision now requires changes to proceed.Jul 6 2020, 11:01 AM

Add a few sgpr,agpr and vcc tests similar to ones from regbankselect-copy.mir. Original tests were from legalize-freeze.mir

arsenm added inline comments.Jul 10 2020, 3:58 PM
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-freeze.mir
39–41

A test with all preassigned banks isn't particularly interesting

81

Shouldn't have a pre-set bank here

Remove tests with preassigned banks, use icmp to produce vcc freeze. Add liveins to functions that didn't have them.

arsenm accepted this revision.Jul 15 2020, 7:16 AM
This revision is now accepted and ready to land.Jul 15 2020, 7:16 AM
This revision was automatically updated to reflect the committed changes.