[PATCH] D145698: [IR][Legalizations] Widen illegal deinterleave and interleave vectors
Caroline via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 9 08:59:34 PST 2023
CarolineConcatto created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
CarolineConcatto requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999.
Herald added a project: LLVM.
To make legalization easier, the operands and outputs have the same size for
these ISD Nodes. When legalizing the results in WidenVecRes_VECTOR_DEINTERLEAVE
the operands are legalized to the same size as the outputs.
The ISD Node has two output/results, therefore the legalizing functions update
both results/outputs.
This patch also adds widen legalization for scalable vectors in
WidenVecRes_CONCAT_VECTORS, because the ISD Node VECTOR_DEINTERLEAVE
uses CONCAT_VECTOR to widen the two concatenated input vectors.
vector. The reason for this to be in this patch is that there is no obvious
llvm-ir to test the ISD Node CONCAT_VECTORS.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145698
Files:
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/CodeGen/AArch64/sve-vector-deinterleave.ll
llvm/test/CodeGen/AArch64/sve-vector-interleave.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145698.503801.patch
Type: text/x-patch
Size: 9592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230309/c39bc554/attachment-0001.bin>
More information about the llvm-commits
mailing list