Re: [PATCH] Optimize 128-bit vector permutation with pand, pandn and por.

2024-11-24 Thread Hongtao Liu
On Wed, Nov 20, 2024 at 8:03 PM Cui, Lili wrote: > > Hi, all > > This patch aims to handle certain vector shuffle operations using pand, pandn > and por more efficiently. > > Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? Although it's stage 3, I think this one is low risk, so O

[PATCH] Optimize 128-bit vector permutation with pand, pandn and por.

2024-11-20 Thread Cui, Lili
Hi, all This patch aims to handle certain vector shuffle operations using pand, pandn and por more efficiently. Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? Regards, Lili. This patch introduces a new subroutine in ix86_expand_vec_perm_const_1. On x86, use mixed constant pe