diff options
| author | Kerry McLaughlin <kerry.mclaughlin@arm.com> | 2020-09-10 09:55:54 +0100 |
|---|---|---|
| committer | Kerry McLaughlin <kerry.mclaughlin@arm.com> | 2020-09-10 11:35:33 +0100 |
| commit | cd89f5c91b4bad90278a59865fc06a75211589a1 (patch) | |
| tree | 2e48f22bd9d839f6e6ad2964d123cfdcda75aed4 /llvm/lib/Bitcode/Reader/BitReader.cpp | |
| parent | b7586afc4dcddd1abc70724585c3eb3857e27f43 (diff) | |
| download | llvm-cd89f5c91b4bad90278a59865fc06a75211589a1.zip llvm-cd89f5c91b4bad90278a59865fc06a75211589a1.tar.gz llvm-cd89f5c91b4bad90278a59865fc06a75211589a1.tar.bz2 | |
[SVE][CodeGen] Legalisation of truncate for scalable vectors
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 sequence of
INSERT_SUBVECTORs if the return type is scalable, and replaces
these with UNPK+UZP1 for AArch64.
Reviewed By: paulwalker-arm
Differential Revision: https://reviews.llvm.org/D86548
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions
