RFR: 8304258: x86: Improve the code generation of VectorRearrange with int and float
Quan Anh Mai
qamai at openjdk.org
Wed Mar 22 20:29:41 UTC 2023
On Wed, 22 Mar 2023 18:36:21 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Hi,
>>
>> This small patch changes the code generation of VectorRearrangeNode with respect to int and float elements. With not-larger-than-128-bit vectors, we can use `vpermilps` instead of promoting to operating on the extended 256-bit vector. This also helps the code generation of AVX1 to not rely on the sse version.
>>
>> Please take a look and leave some reviews.
>> Thanks a lot.
>
> Please, update to latest JDK sources.
@vnkozlov Currently `VectorRearrange` rejects vectors of length 2 as well as 256-bit vectors on AVX1. As a result, the only type of int/float vectors appearing in AVX1 has a length of 4. This change affects AVX >= 1 machines in int and float vector tests in `test/jdk/jdk/incubator/vector`. Thanks a lot.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13042#issuecomment-1480217453
More information about the hotspot-compiler-dev
mailing list