Re: [PATCH] phiopt: Improve minmax optimization [PR95699]

2020-06-18 Thread Richard Biener
On Thu, 18 Jun 2020, Jakub Jelinek wrote: > Hi! > > As discussed in the PR, the > x < 0x8000U to (int) x >= 0 > optimization stands in the way of minmax_replacement optimization, > so for comparisons with most of the constants it works well, but when the > above mentioned optimization trigger

[PATCH] phiopt: Improve minmax optimization [PR95699]

2020-06-18 Thread Jakub Jelinek via Gcc-patches
Hi! As discussed in the PR, the x < 0x8000U to (int) x >= 0 optimization stands in the way of minmax_replacement optimization, so for comparisons with most of the constants it works well, but when the above mentioned optimization triggers, it is unable to do it. The match.pd (cond (cmp (conver