[PATCH] D102501: [CodeGen] Add support for widening INSERT_SUBVECTOR operands

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 14 08:16:27 PDT 2021


david-arm created this revision.
david-arm added reviewers: sdesmalen, frasercrmck, bsmith, kmclaughlin, c-rhodes.
Herald added a subscriber: hiraditya.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When attempting to return something like a <vscale x 1 x i32>
type from a function we end up trying to widen the vector by
inserting a <vscale x 1 x i32> subvector into an undefined
<vscale x 4 x i32> vector. However, during legalisation we
then attempt to widen the INSERT_SUBVECTOR operands and hit
an error in WidenVectorOperand.

This patch adds a new WidenVecOp_INSERT_SUBVECTOR function
that currently only supports inserting subvectors into undefined
vectors.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102501

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/test/CodeGen/AArch64/sve-calling-convention-mixed.ll
  llvm/test/CodeGen/AArch64/sve-insert-vector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102501.345446.patch
Type: text/x-patch
Size: 5573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210514/b9067042/attachment.bin>


More information about the llvm-commits mailing list