Re: [PATCH 2/2] Fix PR88784, middle end is missing some optimizations about unsigned

2019-09-11 Thread Martin Liška
On 9/11/19 3:08 PM, Richard Biener wrote: > On Fri, 6 Sep 2019, Martin Liška wrote: > >> On 9/5/19 3:17 PM, Richard Biener wrote: >>> On Tue, 16 Jul 2019, Li Jia He wrote: >>> Hi, I made some changes based on the recommendations. Would you like to help me to see it again ?

Re: [PATCH 2/2] Fix PR88784, middle end is missing some optimizations about unsigned

2019-09-11 Thread Richard Biener
On Fri, 6 Sep 2019, Martin Liška wrote: > On 9/5/19 3:17 PM, Richard Biener wrote: > > On Tue, 16 Jul 2019, Li Jia He wrote: > > > >> Hi, > >> > >> I made some changes based on the recommendations. Would you like to > >> help me to see it again ? Sorry, it took so long time to provide the > >

[PATCH 2/2] Fix PR88784, middle end is missing some optimizations about unsigned

2019-09-06 Thread Martin Liška
s you could have > (SHORT_MAX > intvar) && (SHORT_MAX == SHORT_MAX) > > That said, the patterns can be quite a bit simplified I think. > > Richard. > Likewise, I applied the suggested simplification. Patch can bootstrap on x86_64-linux-gnu and survives regression test