Re: [PATCH v2] match.pd: Fold pattern of round semantics.

2025-08-26 Thread Zhou Zhao
在 2025/8/26 下午6:52, Richard Biener 写道: On Tue, 26 Aug 2025, Zhou Zhao wrote: 在 2025/8/26 下午3:37, Richard Biener 写道: On Thu, 21 Aug 2025, Zhou Zhao wrote: This patch is a respond of the patch posted at https://gcc.gnu.org/pipermail/gcc-patches/2025-January/673051.html as some suggestion by

Re: [PATCH v2] match.pd: Fold pattern of round semantics.

2025-08-26 Thread Zhou Zhao
在 2025/8/26 下午3:37, Richard Biener 写道: On Thu, 21 Aug 2025, Zhou Zhao wrote: This patch is a respond of the patch posted at https://gcc.gnu.org/pipermail/gcc-patches/2025-January/673051.html as some suggestion by Richard Biener, I have adopted these suggestions and regenerated the patch. In

Re: [PATCH v2] match.pd: Fold pattern of round semantics.

2025-08-25 Thread Zhou Zhao
Ping 在 2025/8/21 下午8:37, Zhou Zhao 写道: This patch is a respond of the patch posted at https://gcc.gnu.org/pipermail/gcc-patches/2025-January/673051.html as some suggestion by Richard Biener, I have adopted these suggestions and regenerated the patch. In the 538.imagick_r benchmark of Spec2017

[PATCH v2] match.pd: Fold pattern of round semantics.

2025-08-21 Thread Zhou Zhao
This patch is a respond of the patch posted at https://gcc.gnu.org/pipermail/gcc-patches/2025-January/673051.html as some suggestion by Richard Biener, I have adopted these suggestions and regenerated the patch. In the 538.imagick_r benchmark of Spec2017, I find these pattern from MagickRound func

Ping: [PATCH] LoongArch: combine related slli operations

2025-03-10 Thread Zhou Zhao
Ping 在 2025/1/7 下午8:45, Zhou Zhao 写道: 在 2025/1/7 下午7:49, Lulu Cheng 写道: 在 2025/1/2 下午5:46, Zhou Zhao 写道: If SImode reg is continuous left shifted twice, combine related instruction to one. gcc/ChangeLog: * config/loongarch/loongarch.md (extsv_ashlsi3):     New template Hi, zhaozhou

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-09 Thread Zhou Zhao
在 2025/1/9 下午3:33, Richard Biener 写道: On Thu, 9 Jan 2025, Zhou Zhao wrote: 在 2025/1/8 下午6:30, Richard Biener 写道: On Wed, 8 Jan 2025, Zhou Zhao wrote: 在 2025/1/8 下午5:04, Richard Biener 写道: On Wed, 8 Jan 2025, Zhou Zhao wrote: 在 2025/1/7 下午10:45, Richard Biener 写道: On Thu, 2 Jan 2025, 赵

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-08 Thread Zhou Zhao
在 2025/1/8 下午5:04, Richard Biener 写道: On Wed, 8 Jan 2025, Zhou Zhao wrote: 在 2025/1/7 下午10:45, Richard Biener 写道: On Thu, 2 Jan 2025, 赵洲 wrote: Add Reviewer Richard Biener. -原始邮件- 发件人: "Zhou Zhao" 发送时间:2025-01-02 19:37:07 (星期四) 收件人: gcc-patches@gcc.gnu.org 抄送: xry

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-08 Thread Zhou Zhao
在 2025/1/7 下午10:45, Richard Biener 写道: On Thu, 2 Jan 2025, 赵洲 wrote: Add Reviewer Richard Biener. -原始邮件- 发件人: "Zhou Zhao" 发送时间:2025-01-02 19:37:07 (星期四) 收件人: gcc-patches@gcc.gnu.org 抄送: xry...@xry111.site, i...@xen0n.name, chengl...@loongson.cn, xucheng...@loongson

Re: [PATCH] LoongArch: combine related slli operations

2025-01-07 Thread Zhou Zhao
在 2025/1/7 下午7:49, Lulu Cheng 写道: 在 2025/1/2 下午5:46, Zhou Zhao 写道: If SImode reg is continuous left shifted twice, combine related instruction to one. gcc/ChangeLog: * config/loongarch/loongarch.md (extsv_ashlsi3):     New template Hi, zhaozhou: The indentation here is wrong, it

[PATCH] match.pd: Fold pattern of round semantics.

2025-01-02 Thread Zhou Zhao
This patch implements 4 rules for semantics of round func in match.pd under -funsafe-math-optimizations: 1) (x-floor(x)) < (ceil(x)-x) ? floor(x) : ceil(x) -> floor(x+0.5) 2) (x-floor(x)) >= (ceil(x)-x) ? ceil(x) : floor(x) -> floor(x+0.5) 3) (ceil(x)-x) > (x-floor(x)) ? floor(x) : ceil(x) -> floor

[PATCH] LoongArch: combine related slli operations

2025-01-02 Thread Zhou Zhao
If SImode reg is continuous left shifted twice, combine related instruction to one. gcc/ChangeLog: * config/loongarch/loongarch.md (extsv_ashlsi3): New template gcc/testsuite/ChangeLog: * gcc.target/loongarch/slli-1.c: New test. --- gcc/config/loongarch/loongarch.md