Re: [PATCH 2/6] gimple-range-edge

2020-10-05 Thread Andrew MacLeod via Gcc-patches
On 10/5/20 8:09 AM, Jakub Jelinek wrote: On Fri, Oct 02, 2020 at 12:59:54PM -0400, Andrew MacLeod via Gcc-patches wrote: The ranger is needed to map those values to the switch variable, and also apply any previous ranges or derived values (ie, if you ask for the range of 'y' in case 2, it will

Re: [PATCH 2/6] gimple-range-edge

2020-10-05 Thread Jakub Jelinek via Gcc-patches
On Fri, Oct 02, 2020 at 12:59:54PM -0400, Andrew MacLeod via Gcc-patches wrote: > > The ranger is needed to map those values to the switch variable, and also > apply any previous ranges or derived values (ie, if you ask for the range of > 'y' in case 2, it will return unsigned int [6,6]. > >

[PATCH 2/6] gimple-range-edge

2020-10-02 Thread Andrew MacLeod via Gcc-patches
This file produces constant edge ranges.  It provides a class which can be instantiated and will return the range on any edge. This was originally suppose to be trivial, but switches mucked that up :-) There are 2 basic expressions that can result ina  constant range on an edge: Note there is