RE: [PATCH v1] RISC-V: Refactor vxrm_mode attr for type attr equal

2023-06-30 Thread Li, Pan2 via Gcc-patches
Committed, thanks Jeff and Juzhe. Pan -Original Message- From: Jeff Law Sent: Friday, June 30, 2023 4:58 AM To: Li, Pan2 ; gcc-patches@gcc.gnu.org Cc: juzhe.zh...@rivai.ai; kito.ch...@sifive.com; Wang, Yanzhang Subject: Re: [PATCH v1] RISC-V: Refactor vxrm_mode attr for type attr

Re: [PATCH v1] RISC-V: Refactor vxrm_mode attr for type attr equal

2023-06-29 Thread Jeff Law via Gcc-patches
On 6/29/23 00:00, pan2...@intel.com wrote: From: Pan Li This patch would like to refactor the vxrm_mode attr for duplicated eq_attr condition. The common condition of attr is extraced to one place instead of many places. Signed-off-by: Pan Li gcc/ChangeLog: *

Re: [PATCH v1] RISC-V: Refactor vxrm_mode attr for type attr equal

2023-06-29 Thread juzhe.zh...@rivai.ai
insn, we don't need to remove 4 places. LGTM. Thanks. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-06-29 14:00 To: gcc-patches CC: juzhe.zhong; kito.cheng; pan2.li; yanzhang.wang; jeffreyalaw Subject: [PATCH v1] RISC-V: Refactor vxrm_mode attr for type attr equal From: Pan Li This patch wo

Re: [PATCH v1] RISC-V: Refactor vxrm_mode attr for type attr equal

2023-06-29 Thread juzhe.zh...@rivai.ai
It's meaningless. Drop this patch. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-06-29 14:00 To: gcc-patches CC: juzhe.zhong; kito.cheng; pan2.li; yanzhang.wang; jeffreyalaw Subject: [PATCH v1] RISC-V: Refactor vxrm_mode attr for type attr equal From: Pan Li This patch would like

[PATCH v1] RISC-V: Refactor vxrm_mode attr for type attr equal

2023-06-29 Thread Pan Li via Gcc-patches
From: Pan Li This patch would like to refactor the vxrm_mode attr for duplicated eq_attr condition. The common condition of attr is extraced to one place instead of many places. Signed-off-by: Pan Li gcc/ChangeLog: * config/riscv/vector.md: Refactor the common condition. ---