Re: [PATCH GCC]Move simplification from fold-cond.c to match.pd and extend it

2016-11-23 Thread Richard Biener
On Wed, Nov 23, 2016 at 12:04 PM, Bin.Cheng wrote: > On Wed, Nov 23, 2016 at 10:51 AM, Richard Biener > wrote: >> On Wed, Nov 23, 2016 at 11:40 AM, Bin.Cheng wrote: >>> On Wed, Nov 23, 2016 at 10:29 AM, Richard Biener >>> wrote: On Fri, Nov 18, 2016 at 11:20 AM, Bin Cheng wrote: > Hi,

Re: [PATCH GCC]Move simplification from fold-cond.c to match.pd and extend it

2016-11-23 Thread Bin.Cheng
On Wed, Nov 23, 2016 at 10:51 AM, Richard Biener wrote: > On Wed, Nov 23, 2016 at 11:40 AM, Bin.Cheng wrote: >> On Wed, Nov 23, 2016 at 10:29 AM, Richard Biener >> wrote: >>> On Fri, Nov 18, 2016 at 11:20 AM, Bin Cheng wrote: Hi, This is a rework of https://gcc.gnu.org/ml/gcc-pa

Re: [PATCH GCC]Move simplification from fold-cond.c to match.pd and extend it

2016-11-23 Thread Richard Biener
On Wed, Nov 23, 2016 at 11:40 AM, Bin.Cheng wrote: > On Wed, Nov 23, 2016 at 10:29 AM, Richard Biener > wrote: >> On Fri, Nov 18, 2016 at 11:20 AM, Bin Cheng wrote: >>> Hi, >>> This is a rework of >>> https://gcc.gnu.org/ml/gcc-patches/2016-10/msg02005.html. According to >>> review comment, I

Re: [PATCH GCC]Move simplification from fold-cond.c to match.pd and extend it

2016-11-23 Thread Bin.Cheng
On Wed, Nov 23, 2016 at 10:29 AM, Richard Biener wrote: > On Fri, Nov 18, 2016 at 11:20 AM, Bin Cheng wrote: >> Hi, >> This is a rework of >> https://gcc.gnu.org/ml/gcc-patches/2016-10/msg02005.html. According to >> review comment, I extended the original patch and made it covering last kind

Re: [PATCH GCC]Move simplification from fold-cond.c to match.pd and extend it

2016-11-23 Thread Richard Biener
On Fri, Nov 18, 2016 at 11:20 AM, Bin Cheng wrote: > Hi, > This is a rework of https://gcc.gnu.org/ml/gcc-patches/2016-10/msg02005.html. > According to review comment, I extended the original patch and made it > covering last kind simplification of fold_cond_expr_with_comparison (Well, > this

[PATCH GCC]Move simplification from fold-cond.c to match.pd and extend it

2016-11-18 Thread Bin Cheng
Hi, This is a rework of https://gcc.gnu.org/ml/gcc-patches/2016-10/msg02005.html. According to review comment, I extended the original patch and made it covering last kind simplification of fold_cond_expr_with_comparison (Well, this patch handles <, <=, > and >=. == will be handled by a follow