Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-09-04 Thread Richard Biener
On Fri, Sep 1, 2017 at 3:01 PM, Martin Liška wrote: > On 09/01/2017 12:57 PM, Richard Biener wrote: >> On Fri, Sep 1, 2017 at 12:44 PM, Martin Liška wrote: >>> On 09/01/2017 10:26 AM, Richard Biener wrote: On Fri, Sep 1, 2017 at 10:07 AM, Martin Liška wrote: > On 08/30/2017 02:56 PM, Ri

Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-09-01 Thread Martin Liška
On 09/01/2017 12:57 PM, Richard Biener wrote: > On Fri, Sep 1, 2017 at 12:44 PM, Martin Liška wrote: >> On 09/01/2017 10:26 AM, Richard Biener wrote: >>> On Fri, Sep 1, 2017 at 10:07 AM, Martin Liška wrote: On 08/30/2017 02:56 PM, Richard Biener wrote: > On Wed, Aug 30, 2017 at 2:32 PM,

Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-09-01 Thread Richard Biener
On Fri, Sep 1, 2017 at 12:44 PM, Martin Liška wrote: > On 09/01/2017 10:26 AM, Richard Biener wrote: >> On Fri, Sep 1, 2017 at 10:07 AM, Martin Liška wrote: >>> On 08/30/2017 02:56 PM, Richard Biener wrote: On Wed, Aug 30, 2017 at 2:32 PM, Martin Liška wrote: > On 08/30/2017 02:28 PM, R

Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-09-01 Thread Martin Liška
On 09/01/2017 10:26 AM, Richard Biener wrote: > On Fri, Sep 1, 2017 at 10:07 AM, Martin Liška wrote: >> On 08/30/2017 02:56 PM, Richard Biener wrote: >>> On Wed, Aug 30, 2017 at 2:32 PM, Martin Liška wrote: On 08/30/2017 02:28 PM, Richard Biener wrote: > On Wed, Aug 30, 2017 at 1:13 PM,

Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-09-01 Thread Richard Biener
On Fri, Sep 1, 2017 at 10:07 AM, Martin Liška wrote: > On 08/30/2017 02:56 PM, Richard Biener wrote: >> On Wed, Aug 30, 2017 at 2:32 PM, Martin Liška wrote: >>> On 08/30/2017 02:28 PM, Richard Biener wrote: On Wed, Aug 30, 2017 at 1:13 PM, Martin Liška wrote: > Hi. > > Simple tr

Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-09-01 Thread Martin Liška
On 08/30/2017 02:56 PM, Richard Biener wrote: > On Wed, Aug 30, 2017 at 2:32 PM, Martin Liška wrote: >> On 08/30/2017 02:28 PM, Richard Biener wrote: >>> On Wed, Aug 30, 2017 at 1:13 PM, Martin Liška wrote: Hi. Simple transformation of switch statements where degenerated switch can

Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-08-30 Thread Richard Biener
On Wed, Aug 30, 2017 at 2:32 PM, Martin Liška wrote: > On 08/30/2017 02:28 PM, Richard Biener wrote: >> On Wed, Aug 30, 2017 at 1:13 PM, Martin Liška wrote: >>> Hi. >>> >>> Simple transformation of switch statements where degenerated switch can be >>> interpreted >>> as gimple condition (or remo

Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-08-30 Thread Martin Liška
On 08/30/2017 02:28 PM, Richard Biener wrote: > On Wed, Aug 30, 2017 at 1:13 PM, Martin Liška wrote: >> Hi. >> >> Simple transformation of switch statements where degenerated switch can be >> interpreted >> as gimple condition (or removed if having any non-default case). I >> originally though >

Re: [PATCH] Expand switch statements with a single (or none) non-default case.

2017-08-30 Thread Richard Biener
On Wed, Aug 30, 2017 at 1:13 PM, Martin Liška wrote: > Hi. > > Simple transformation of switch statements where degenerated switch can be > interpreted > as gimple condition (or removed if having any non-default case). I originally > though > that we don't have switch statements without non-defa

[PATCH] Expand switch statements with a single (or none) non-default case.

2017-08-30 Thread Martin Liška
Hi. Simple transformation of switch statements where degenerated switch can be interpreted as gimple condition (or removed if having any non-default case). I originally though that we don't have switch statements without non-default cases, but PR82032 shows we can see it. Patch can bootstrap o