llvm-project/llvm/test/Transforms/LoadStoreVectorizer
Slava Nikolaev 119965865c LoadStoreVectorizer: support different operand orders in the add sequence match
First we refactor the code which does no wrapping add sequences
match: we need to allow different operand orders for
the key add instructions involved in the match.

Then we use the refactored code trying 4 variants of matching operands.

Originally the code relied on the fact that the matching operands
of the two last add instructions of memory index calculations
had the same LHS argument. But which operand is the same
in the two instructions is actually not essential, so now we allow
that to be any of LHS or RHS of each of the two instructions.
This increases the chances of vectorization to happen.

Reviewed By: volkan

Differential Revision: https://reviews.llvm.org/D103912
2021-06-10 16:31:35 -07:00
..
AMDGPU Precommit transform tests that have poison as insertelement's placeholder 2020-12-24 11:46:17 +09:00
NVPTX
X86 LoadStoreVectorizer: support different operand orders in the add sequence match 2021-06-10 16:31:35 -07:00
int_sideeffect.ll