HomePhabricator

[SVE] Fix casts to <FixedVectorType> in truncateToMinimalBitwidths

Authored by kmclaughlin on Jul 26 2021, 2:55 AM.

Description

[SVE] Fix casts to <FixedVectorType> in truncateToMinimalBitwidths

Fixes more casts to <FixedVectorType> for the cases where the
instruction is a Insert/ExtractElementInst.

For fixed-width, this part of truncateToMinimalBitWidths is tested by
AArch64/type-shrinkage-insertelt.ll. I attempted to write a test case for this part
of truncateToMinimalBitWidths which uses scalable vectors, but was unable to add
one. The tests in type-shrinkage-insertelt.ll rely on scalarization to create extract
element instructions for instance, which is not possible for scalable vectors.

Reviewed By: david-arm

Differential Revision: https://reviews.llvm.org/D106163

Details

Committed
kmclaughlinJul 26 2021, 5:44 AM
Reviewer
david-arm
Differential Revision
D106163: [SVE] Fix casts to <FixedVectorType> in truncateToMinimalBitwidths
Parents
rGd7cb2a079677: Revert "[SLP]Fix costs calculations."
Branches
Unknown
Tags
Unknown