Re: [PATCH] Canonicalize vec_perm index to make the first index come from the first vector.

2022-10-18 Thread Uros Bizjak via Gcc-patches
On Wed, Oct 19, 2022 at 1:25 AM liuhongt wrote: > > Fix unexpected non-canon form from gimple vector selector. > > Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. > Ok for trunk? > > gcc/ChangeLog: > > PR target/107271 > * config/i386/i386-expand.cc (ix86_vec_perm_index_c

Re: [PATCH] Canonicalize vec_perm index to make the first index come from the first vector.

2022-10-18 Thread Hongtao Liu via Gcc-patches
On Wed, Oct 19, 2022 at 7:49 AM H.J. Lu wrote: > > On Tue, Oct 18, 2022 at 4:25 PM liuhongt wrote: > > > > Fix unexpected non-canon form from gimple vector selector. > > > > Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. > > Ok for trunk? > > > > gcc/ChangeLog: > > > > PR targe

Re: [PATCH] Canonicalize vec_perm index to make the first index come from the first vector.

2022-10-18 Thread H.J. Lu via Gcc-patches
On Tue, Oct 18, 2022 at 4:25 PM liuhongt wrote: > > Fix unexpected non-canon form from gimple vector selector. > > Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. > Ok for trunk? > > gcc/ChangeLog: > > PR target/107271 > * config/i386/i386-expand.cc (ix86_vec_perm_index_c

[PATCH] Canonicalize vec_perm index to make the first index come from the first vector.

2022-10-18 Thread liuhongt via Gcc-patches
Fix unexpected non-canon form from gimple vector selector. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: PR target/107271 * config/i386/i386-expand.cc (ix86_vec_perm_index_canon): New. (expand_vec_perm_shufps_shufps): Call