RFR: 8304258: x86: Improve the code generation of VectorRearrange with int and float

Vladimir Kozlov kvn at openjdk.org
Wed Mar 22 18:39:08 UTC 2023


On Wed, 15 Mar 2023 12:55:52 GMT, Quan Anh Mai <qamai 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.

This is really should be reviewed by @jatin-bhateja and @sviswa7
Do updated predicates satisfy restrictions on these vectors listed in `match_rule_supported_vector` at line 1855?
I can help with testing. @merykitty, what tests are affected by this change?

Please, update to latest JDK sources.

-------------

PR Review: https://git.openjdk.org/jdk/pull/13042#pullrequestreview-1353247207
PR Comment: https://git.openjdk.org/jdk/pull/13042#issuecomment-1480075471


More information about the hotspot-compiler-dev mailing list