Re: Ping: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234)

2020-09-14 Thread Richard Biener via Gcc-patches
to do this. Richard. > Feng > > ____________ > From: Richard Biener > Sent: Monday, September 14, 2020 9:39 PM > To: Feng Xue OS > Cc: gcc-patches@gcc.gnu.org > Subject: Re: Ping: [PATCH 1/2] Fold plusminus_mult expr with multi-use > operands

Re: Ping: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234)

2020-09-14 Thread Feng Xue OS via Gcc-patches
____ From: Richard Biener Sent: Monday, September 14, 2020 9:39 PM To: Feng Xue OS Cc: gcc-patches@gcc.gnu.org Subject: Re: Ping: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234) On Mon, Sep 14, 2020 at 5:17 AM Feng Xue OS

Re: Ping: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234)

2020-09-14 Thread Richard Biener via Gcc-patches
OS > Sent: Thursday, September 3, 2020 2:06 PM > To: gcc-patches@gcc.gnu.org > Subject: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR > 94234) > > For pattern A * C +- B * C -> (A +- B) * C, simplification is disabled > when A and B are not single-use. Thi

Ping: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234)

2020-09-13 Thread Feng Xue OS via Gcc-patches
Thanks, Feng From: Feng Xue OS Sent: Thursday, September 3, 2020 2:06 PM To: gcc-patches@gcc.gnu.org Subject: [PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234) For pattern A * C +- B * C -> (A +- B) * C, simplification is disab

[PATCH 1/2] Fold plusminus_mult expr with multi-use operands (PR 94234)

2020-09-02 Thread Feng Xue OS via Gcc-patches
For pattern A * C +- B * C -> (A +- B) * C, simplification is disabled when A and B are not single-use. This patch is a minor enhancement on the pattern, which allows folding if final result is found to be a simple gimple value (constant/existing SSA). Bootstrapped/regtested on x86_64-linux and aa