Page MenuHomePhabricator

[AArch64][GlobalISel] Use custom legalization for G_TRUNC for v8i8 vectors

Authored by aemerson on Wed, Sep 23, 4:31 PM.



Truncating to v8i8 is a case where we want to split the source but also generate intermediate truncates to reduce the size of the source vector before truncating down to v8i8. This implements the same strategy as what SelectionDAG does, but I'm not certain where if anywhere in generic code it should live.

Use it for legalization of v8s8 = G_ICMP v8s32.

Diff Detail

Event Timeline

aemerson created this revision.Wed, Sep 23, 4:31 PM
arsenm added inline comments.Wed, Sep 23, 4:43 PM

I don't think there's anything really custom here

aemerson added inline comments.Thu, Sep 24, 7:54 AM

Do you have a suggestion of where this could live? narrowScalar?

This revision was not accepted when it landed; it landed in state Needs Review.Thu, Oct 1, 1:30 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.