HomePhabricator

[TTI, AArch64] Add transpose shuffle kind

Description

[TTI, AArch64] Add transpose shuffle kind

This patch adds a new shuffle kind useful for transposing a 2xn matrix. These
transpose shuffle masks read corresponding even- or odd-numbered vector
elements from two n-dimensional source vectors and write each result into
consecutive elements of an n-dimensional destination vector. The transpose
shuffle kind is meant to model the TRN1 and TRN2 AArch64 instructions. As such,
this patch also considers transpose shuffles in the AArch64 implementation of
getShuffleCost.

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

Details

Committed
mssimpsoApr 26 2018, 6:48 AM
Differential Revision
D45982: [TTI, AArch64] Add transpose shuffle kind
Parents
rL330940: [RISCV] Implement isTruncateFree
Branches
Unknown
Tags
Unknown