Skip to content
Unverified Commit 30edf1c4 authored by Alexey Bataev's avatar Alexey Bataev Committed by GitHub
Browse files

[SLP]Do not early exit if the number of unique elements is non-power-of-2. (#65476)



We still can try to vectorize the bundle of the instructions, even if
the
repeated number of instruction is non-power-of-2. In this case need to
adjust the cost (calculate the cost only for unique scalar instructions)
and cost of the extracts. Also, when scheduling the bundle need to
schedule only unique scalars to avoid compiler crash because of the
multiple dependencies. Can be safely applied only if all scalars's users
are also vectorized and do not require memory accesses (this one is
a temporarily requirement, can be relaxed later).

---------

Co-authored-by: default avatarAlexey Bataev <a.bataev@outlook.com>
parent 2c93e3c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment