diff options
author | Jessica Paquette <jpaquette@apple.com> | 2020-06-04 11:07:47 -0700 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2020-06-09 10:55:19 -0700 |
commit | cb2d8b30ad0dc08bb151b922f5a137014ef9fc87 (patch) | |
tree | 56d8fdc664736c7fb7b40e12d6cbc7915b138dc0 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | de019b88dd5804ec996fe8c12cddcc6feb13afa1 (diff) | |
download | llvm-cb2d8b30ad0dc08bb151b922f5a137014ef9fc87.zip llvm-cb2d8b30ad0dc08bb151b922f5a137014ef9fc87.tar.gz llvm-cb2d8b30ad0dc08bb151b922f5a137014ef9fc87.tar.bz2 |
[AArch64][GlobalISel] Select trn1 and trn2
Same idea as for zip, uzp, etc. Teach the post-legalizer combiner to recognize
G_SHUFFLE_VECTORs that are trn1/trn2 instructions.
- Add G_TRN1 and G_TRN2
- Port mask matching code from AArch64ISelLowering
- Produce G_TRN1 and G_TRN2 in the post-legalizer combiner
- Select via importer
Add select-trn.mir to test selection.
Add postlegalizer-combiner-trn.mir to test the combine. This is similar to the
existing arm64-trn test.
Note that both of these tests contain things we currently don't legalize.
I figured it would be easier to test these now rather than later, since once
we legalize the G_SHUFFLE_VECTORs, it's not guaranteed that someone will update
the tests.
Differential Revision: https://reviews.llvm.org/D81182
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions