Re: [PATCH v3] RISC-V: Use merge approach to optimize vector permutation

2023-06-14 Thread juzhe.zh...@rivai.ai
LGTM thanks,. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-06-15 10:18 To: gcc-patches CC: juzhe.zhong; palmer; rdapp.gcc; jeffreyalaw; kito.cheng Subject: [PATCH v3] RISC-V: Use merge approach to optimize vector permutation From: Juzhe-Zhong This patch is to optimize the permuation case

[PATCH v3] RISC-V: Use merge approach to optimize vector permutation

2023-06-14 Thread Pan Li via Gcc-patches
From: Juzhe-Zhong This patch is to optimize the permuation case that is suiteable use merge approach. Consider this following case: typedef int8_t vnx16qi __attribute__((vector_size (16))); void __attribute__ ((noipa)) merge0 (vnx16qi x, vnx16qi y, vnx16qi *out) { vnx16qi v = __builtin_shuffl