Re: Re: [PATCH v2] gimple-match.pd Add more optimization for gimple_cond

2023-11-29 Thread Richard Biener
On Tue, Nov 28, 2023 at 7:08 AM Andrew Pinski wrote: > > On Mon, Nov 27, 2023 at 10:04 PM Feng Wang > wrote: > > > > On 2023-11-28 11:06 Andrew Pinski wrote: > > >On Mon, Nov 27, 2023 at 6:56 PM Feng Wang > > >wrote: > > >> > > >> The link of PATCH v1: > > >> https://www.mail-archive.com/gc

Re: Re: [PATCH v2] gimple-match.pd Add more optimization for gimple_cond

2023-11-27 Thread Andrew Pinski
On Mon, Nov 27, 2023 at 10:04 PM Feng Wang wrote: > > On 2023-11-28 11:06 Andrew Pinski wrote: > >On Mon, Nov 27, 2023 at 6:56 PM Feng Wang > >wrote: > >> > >> The link of PATCH v1: > >> https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg326661.html > >> This patch add another condition

Re: Re: [PATCH v2] gimple-match.pd Add more optimization for gimple_cond

2023-11-27 Thread Feng Wang
On 2023-11-28 11:06  Andrew Pinski wrote: >On Mon, Nov 27, 2023 at 6:56 PM Feng Wang wrote: >> >> The link of PATCH v1: >> https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg326661.html >> This patch add another condition for gimple-cond optimization. Refer to >> the following test case. >>

Re: [PATCH v2] gimple-match.pd Add more optimization for gimple_cond

2023-11-27 Thread Andrew Pinski
On Mon, Nov 27, 2023 at 6:56 PM Feng Wang wrote: > > The link of PATCH v1: > https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg326661.html > This patch add another condition for gimple-cond optimization. Refer to > the following test case. > int foo1 (int data, int res) > { > res = data &

[PATCH v2] gimple-match.pd Add more optimization for gimple_cond

2023-11-27 Thread Feng Wang
The link of PATCH v1: https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg326661.html This patch add another condition for gimple-cond optimization. Refer to the following test case. int foo1 (int data, int res) { res = data & 0xf; res |= res << 4; if (res < 0x22) return 0x22; retu