Re: [PATCH] Restrict avx256_avoid_vec_perm only for loop vectorization.

2025-08-27 Thread Hongtao Liu
On Wed, Aug 27, 2025 at 4:53 PM Richard Biener wrote: > > On Wed, Aug 27, 2025 at 6:57 AM liuhongt wrote: > > > > Since kind == vec_perm may not be a real vec_perm, just a broadcast or > > simple load in BB vectorizer. > > Btw, you can now (in some cases) do better, namely you should > always hav

Re: [PATCH] Restrict avx256_avoid_vec_perm only for loop vectorization.

2025-08-27 Thread Richard Biener
On Wed, Aug 27, 2025 at 6:57 AM liuhongt wrote: > > Since kind == vec_perm may not be a real vec_perm, just a broadcast or > simple load in BB vectorizer. Btw, you can now (in some cases) do better, namely you should always have 'node' available and when SLP_TREE_PERMUTE_P (node) then SLP_TREE_LA

[PATCH] Restrict avx256_avoid_vec_perm only for loop vectorization.

2025-08-26 Thread liuhongt
Since kind == vec_perm may not be a real vec_perm, just a broadcast or simple load in BB vectorizer. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ready push to trunk. gcc/ChangeLog: * config/i386/i386.cc (ix86_vector_costs::finish_cost): Restrict tune avx256_avoid_ve