[PATCH] D84663: GlobalISel: Implement fewerElementsVector for G_EXTRACT_VECTOR_ELT
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 27 08:03:04 PDT 2020
arsenm created this revision.
arsenm added reviewers: dsanders, aemerson, paquette, aditya_nandakumar.
Herald added subscribers: kerbowa, hiraditya, tschuett, rovka, nhaehnle, wdng, jvesely.
Herald added a project: LLVM.
Use the same basic strategy as LegalizeVectorTypes. Try to index into
smaller pieces if there's a constant index, and otherwise fall back to
a stack temporary.
https://reviews.llvm.org/D84663
Files:
llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-extract-vector-elt.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84663.280922.patch
Type: text/x-patch
Size: 40857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200727/f0ff65b3/attachment.bin>
More information about the llvm-commits
mailing list