Re: [PATCH] RISC-V: Optimal RVV epilogue logic.

2022-11-15 Thread Philipp Tomsich
On Mon, 14 Nov 2022 at 17:29, jiawei wrote: > > Skip add insn generate if the adjust size equal to zero. > > gcc/ChangeLog: > > * config/riscv/riscv.cc (riscv_expand_epilogue): > New if control segement. > > --- > gcc/config/riscv/riscv.cc | 18

Re: [PATCH] RISC-V: Optimal RVV epilogue logic.

2022-11-14 Thread Jeff Law via Gcc-patches
On 11/14/22 20:13, Kito Cheng wrote: I would suggest add a sperated case and scan-assembly-not to demonstrate this patch. Agreed.  One way to do this would be to have new tests which have the proper dg-directives for testing this issue and #include the original test. So, something like

Re: [PATCH] RISC-V: Optimal RVV epilogue logic.

2022-11-14 Thread Jeff Law via Gcc-patches
On 11/14/22 09:29, jiawei wrote: Skip add insn generate if the adjust size equal to zero. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_expand_epilogue): New if control segement. --- gcc/config/riscv/riscv.cc | 18 ++ 1 file

Re: Re: [PATCH] RISC-V: Optimal RVV epilogue logic.

2022-11-14 Thread Kito Cheng
vai.ai, christoph.muell...@vrull.eu, > philipp.toms...@vrull.eu, wuwei2...@iscas.ac.cn > 主题: Re: [PATCH] RISC-V: Optimal RVV epilogue logic. > > Could you provide some testcase? > > Sorry for not giving a clear description, > > You can use amost all testcases in gcc.targ

Re: Re: [PATCH] RISC-V: Optimal RVV epilogue logic.

2022-11-14 Thread juzhe.zh...@rivai.ai
palmer; juzhe.zhong; christoph.muellner; philipp.tomsich; wuwei2016 Subject: Re: Re: [PATCH] RISC-V: Optimal RVV epilogue logic. -原始邮件- 发件人: "Kito Cheng" 发送时间: 2022-11-15 09:48:26 (星期二) 收件人: jiawei 抄送: gcc-patches@gcc.gnu.org, kito.ch...@sifive.com, pal...@rivos

Re: Re: [PATCH] RISC-V: Optimal RVV epilogue logic.

2022-11-14 Thread jiawei
-原始邮件- 发件人: "Kito Cheng" 发送时间: 2022-11-15 09:48:26 (星期二) 收件人: jiawei 抄送: gcc-patches@gcc.gnu.org, kito.ch...@sifive.com, pal...@rivosinc.com, juzhe.zh...@rivai.ai, christoph.muell...@vrull.eu, philipp.toms...@vrull.eu, wuwei2...@iscas.ac.cn 主题: Re: [PATCH] RISC-V: O

Re: [PATCH] RISC-V: Optimal RVV epilogue logic.

2022-11-14 Thread Kito Cheng via Gcc-patches
Could you provide some testcase? On Tue, Nov 15, 2022 at 12:29 AM jiawei wrote: > > Skip add insn generate if the adjust size equal to zero. > > gcc/ChangeLog: > > * config/riscv/riscv.cc (riscv_expand_epilogue): > New if control segement. > > --- >

[PATCH] RISC-V: Optimal RVV epilogue logic.

2022-11-14 Thread jiawei
Skip add insn generate if the adjust size equal to zero. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_expand_epilogue): New if control segement. --- gcc/config/riscv/riscv.cc | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-)