Re: [patch] Fix PR tree-optimization/96344

2020-12-15 Thread Jeff Law via Gcc-patches
On 12/15/20 3:17 AM, Eric Botcazou wrote: >> OK. > Thanks. Unfortunately I overlooked the comment of the function: > > MINVAL is the lowest case value of in the case nodes, > and RANGE is highest value minus MINVAL. MINVAL and RANGE > are not guaranteed to be of the same type as IN

Re: [patch] Fix PR tree-optimization/96344

2020-12-15 Thread Eric Botcazou
> OK. Thanks. Unfortunately I overlooked the comment of the function: MINVAL is the lowest case value of in the case nodes, and RANGE is highest value minus MINVAL. MINVAL and RANGE are not guaranteed to be of the same type as INDEX_EXPR (the gimplifier doesn't change the type o

Re: [patch] Fix PR tree-optimization/96344

2020-12-07 Thread Richard Biener via Gcc-patches
On Mon, Dec 7, 2020 at 3:53 PM Eric Botcazou wrote: > > Hi, > > the very recent addition of the if_to_switch pass has partially disabled the > optimization I added back in June: > > 2020-06-26 Eric Botcazou > > * tree-ssa-reassoc.c (dump_range_entry): New function. > (debug_rang