https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112853
--- Comment #2 from Vineet Gupta <vineetg at gcc dot gnu.org> --- Bisected to commit 97ddebb6b4f6b132b0a8072b26d030077b418963 Author: Juzhe-Zhong <juzhe.zh...@rivai.ai> Date: Thu Nov 23 18:55:03 2023 +0800 RISC-V: Refine some codes of riscv-v.cc[NFC] This patch is NFC patch to refine unreasonable codes I notice. Tested on zvl128b/zvl256b/zvl512b/zvl1024b no regression. Committed. gcc/ChangeLog: * config/riscv/riscv-v.cc (emit_vlmax_gather_insn): Refine codes. (emit_vlmax_masked_gather_mu_insn): Ditto. (modulo_sel_indices): Ditto. (expand_vec_perm): Ditto. (shuffle_generic_patterns): Ditto.