[PATCH] D86548: [SVE][CodeGen] Legalisation of truncate for scalable vectors
Kerry McLaughlin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 09:47:22 PDT 2020
kmclaughlin created this revision.
kmclaughlin added reviewers: sdesmalen, efriedma, david-arm, paulwalker-arm.
Herald added subscribers: llvm-commits, psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: rengolin.
Herald added a project: LLVM.
kmclaughlin requested review of this revision.
Truncating from an illegal SVE type to a legal type, e.g.
`trunc <vscale x 4 x i64> %in to <vscale x 4 x i32>`
fails after PromoteIntOp_CONCAT_VECTORS attempts to
create a BUILD_VECTOR.
This patch changes the promote function to create a pair of
INSERT_SUBVECTORs if the return type is scalable, and replaces
these with UZP1 for AArch64.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86548
Files:
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-split-trunc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86548.287693.patch
Type: text/x-patch
Size: 5758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/0331f6c8/attachment.bin>
More information about the llvm-commits
mailing list