This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Split VALU s64 G_ZEXT/G_SEXT in RegBankSelect
ClosedPublic

Authored by arsenm on Jun 24 2019, 7:06 AM.

Details

Reviewers
tstellar
nhaehnle
Summary

Scalar extends to s64 can use S_BFE_{I64|U64}, but vector extends need
to extend to the 32-bit half, and then to 64.

I'm not sure what the line should be between what RegBankSelect
handles, and what instruction select does, but for now I'm erring on
the side of RegBankSelect for future post-RBS combines.

Diff Detail

Event Timeline

arsenm created this revision.Jun 24 2019, 7:06 AM
This revision is now accepted and ready to land.Jun 24 2019, 10:28 AM
arsenm closed this revision.Jun 24 2019, 10:54 AM

r364212