Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-23 Thread Richard Biener
On Fri, 20 Nov 2015, Jeff Law wrote: > On 11/20/2015 10:04 AM, Senthil Kumar Selvaraj wrote: > > On Thu, Nov 19, 2015 at 10:31:41AM -0700, Jeff Law wrote: > > > On 11/18/2015 11:20 PM, Senthil Kumar Selvaraj wrote: > > > > On Wed, Nov 18, 2015 at 09:36:21AM +0100, Richard Biener wrote: > > > > >

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-20 Thread Senthil Kumar Selvaraj
On Thu, Nov 19, 2015 at 10:31:41AM -0700, Jeff Law wrote: > On 11/18/2015 11:20 PM, Senthil Kumar Selvaraj wrote: > >On Wed, Nov 18, 2015 at 09:36:21AM +0100, Richard Biener wrote: > >> > >>Otherwise ok. > > > >See modified patch below. If you think vrp98.c is unnecessary, feel free > >to dump it

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-20 Thread Jeff Law
On 11/20/2015 10:04 AM, Senthil Kumar Selvaraj wrote: On Thu, Nov 19, 2015 at 10:31:41AM -0700, Jeff Law wrote: On 11/18/2015 11:20 PM, Senthil Kumar Selvaraj wrote: On Wed, Nov 18, 2015 at 09:36:21AM +0100, Richard Biener wrote: Otherwise ok. See modified patch below. If you think vrp98.c

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-19 Thread Jeff Law
On 11/18/2015 11:20 PM, Senthil Kumar Selvaraj wrote: On Wed, Nov 18, 2015 at 09:36:21AM +0100, Richard Biener wrote: Otherwise ok. See modified patch below. If you think vrp98.c is unnecessary, feel free to dump it :). If ok, could you commit it for me please? I don't have commit access.

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-18 Thread Richard Biener
On Wed, 18 Nov 2015, Senthil Kumar Selvaraj wrote: > On Mon, Nov 16, 2015 at 10:02:15AM +0100, Richard Biener wrote: > > On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: > > > > > On Sat, Nov 14, 2015 at 09:57:40AM +0100, Richard Biener wrote: > > > > On November 14, 2015 9:49:28 AM GMT+01:00,

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-18 Thread Senthil Kumar Selvaraj
On Wed, Nov 18, 2015 at 09:36:21AM +0100, Richard Biener wrote: > On Wed, 18 Nov 2015, Senthil Kumar Selvaraj wrote: > > > On Mon, Nov 16, 2015 at 10:02:15AM +0100, Richard Biener wrote: > > > On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: > > > > > > > On Sat, Nov 14, 2015 at 09:57:40AM

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-17 Thread Senthil Kumar Selvaraj
On Mon, Nov 16, 2015 at 10:02:15AM +0100, Richard Biener wrote: > On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: > > > On Sat, Nov 14, 2015 at 09:57:40AM +0100, Richard Biener wrote: > > > On November 14, 2015 9:49:28 AM GMT+01:00, Senthil Kumar Selvaraj > > >

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-16 Thread Richard Biener
On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: > On Sat, Nov 14, 2015 at 09:57:40AM +0100, Richard Biener wrote: > > On November 14, 2015 9:49:28 AM GMT+01:00, Senthil Kumar Selvaraj > > wrote: > > >On Sat, Nov 14, 2015 at 09:13:41AM +0100, Marc Glisse

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-14 Thread Senthil Kumar Selvaraj
On Sat, Nov 14, 2015 at 09:13:41AM +0100, Marc Glisse wrote: > On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: > > >This patch came out of a discussion held in the gcc mailing list > >(https://gcc.gnu.org/ml/gcc/2015-11/msg00067.html). > > > >The patch restricts folding of conditional exprs

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-14 Thread Marc Glisse
On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: This patch came out of a discussion held in the gcc mailing list (https://gcc.gnu.org/ml/gcc/2015-11/msg00067.html). The patch restricts folding of conditional exprs with lhs previously set by a type conversion to occur only if the source of

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-14 Thread Richard Biener
On November 14, 2015 9:49:28 AM GMT+01:00, Senthil Kumar Selvaraj wrote: >On Sat, Nov 14, 2015 at 09:13:41AM +0100, Marc Glisse wrote: >> On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: >> >> >This patch came out of a discussion held in the gcc mailing list

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-14 Thread Senthil Kumar Selvaraj
On Sat, Nov 14, 2015 at 09:57:40AM +0100, Richard Biener wrote: > On November 14, 2015 9:49:28 AM GMT+01:00, Senthil Kumar Selvaraj > wrote: > >On Sat, Nov 14, 2015 at 09:13:41AM +0100, Marc Glisse wrote: > >> On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: >

[Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-13 Thread Senthil Kumar Selvaraj
This patch came out of a discussion held in the gcc mailing list (https://gcc.gnu.org/ml/gcc/2015-11/msg00067.html). The patch restricts folding of conditional exprs with lhs previously set by a type conversion to occur only if the source of the type conversion's mode is word mode or smaller.