[all-commits] [llvm/llvm-project] a21bff: [CodeGen] Add support for widening the result of E...
david-arm via All-commits
all-commits at lists.llvm.org
Thu May 20 04:27:39 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a21bff0673a1d593588c69e2ed2f557af40faa2d
https://github.com/llvm/llvm-project/commit/a21bff0673a1d593588c69e2ed2f557af40faa2d
Author: David Sherwood <david.sherwood at arm.com>
Date: 2021-05-20 (Thu, 20 May 2021)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
M llvm/test/CodeGen/AArch64/sve-extract-vector.ll
M llvm/test/CodeGen/AArch64/sve-int-arith.ll
Log Message:
-----------
[CodeGen] Add support for widening the result of EXTRACT_SUBVECTOR
When trying to return a type such as <vscale x 1 x i32> from a
function we crash in DAGTypeLegalizer::WidenVecRes_EXTRACT_SUBVECTOR
when attempting to get the fixed number of elements in the vector.
For the simple case we are dealing with, i.e. extracting
<vscale x 1 x i32> from index 0 of input vector <vscale x 4 x i32>
we can simply rely upon existing code that just returns the input.
Differential Revision: https://reviews.llvm.org/D102605
More information about the All-commits
mailing list