llvm-project/llvm/test/Transforms/VectorCombine
David Green 6f9e1ea0ef [VectorCombine] Attempt to fold select shuffles from reductions
Given a commutative reduction leading from a shuffle, the order of the
lanes on the shuffle are not important for the result. This means we can
reorder the shuffle to something simpler, which we try shuffling the
first vector lanes first. This was D123494.

The new shuffle may not be profitable though, and if it is not we can
try the folding of select shuffles from D123911. This, with some
adjustment as the output lane ordering is now unimportant, can allow the
final shuffle to simplify given the inputs to the patterns from D123911.
Where as each transformation on their own are not profitable, the
combination is.

We can only support a single shuffle when called from reductions, but we
are able to sort the ReconstructMask, potentially allowing it to
simplify to an identity or concat mask.

Differential Revision: https://reviews.llvm.org/D125086
2022-05-08 10:32:41 +01:00
..
AArch64 [VectorCombine] Attempt to fold select shuffles from reductions 2022-05-08 10:32:41 +01:00
AMDGPU [VectorCombine] Insert addrspacecast when crossing address space boundaries 2022-03-24 19:08:08 +00:00
Hexagon [NewPM][test] Use -passes syntax in VectorCombine lit tests 2021-10-20 15:16:17 +02:00
X86 [VectorCombine] Insert addrspacecast when crossing address space boundaries 2022-03-24 19:08:08 +00:00
load-insert-store.ll [NewPM][test] Use -passes syntax in VectorCombine lit tests 2021-10-20 15:16:17 +02:00