Committed, thanks Jeff. Pan
-----Original Message----- From: Gcc-patches <gcc-patches-bounces+pan2.li=intel....@gcc.gnu.org> On Behalf Of Jeff Law via Gcc-patches Sent: Sunday, September 10, 2023 9:38 PM To: Juzhe-Zhong <juzhe.zh...@rivai.ai>; gcc-patches@gcc.gnu.org Cc: kito.ch...@sifive.com; kito.ch...@gmail.com Subject: Re: [PATCH] RISC-V: Expand fixed-vlmax/vls vector permutation in targethook On 9/9/23 20:33, Juzhe-Zhong wrote: > When debugging FAIL: gcc.dg/pr92301.c execution test. > Realize a vls vector permutation situation failed to vectorize since early > return false: > > - /* For constant size indices, we dont't need to handle it here. > - Just leave it to vec_perm<mode>. */ > - if (d->perm.length ().is_constant ()) > - return false; > > To avoid more potential failed vectorization case. Now expand it in > targethook. > > gcc/ChangeLog: > > * config/riscv/riscv-v.cc (shuffle_generic_patterns): Expand > fixed-vlmax/vls vector permutation. OK. jeff