Re: combine_conversions int->double->int

2012-04-27 Thread Marc Glisse
On Fri, 27 Apr 2012, Richard Guenther wrote: Do you have a copyright assignment on file? Yes. -- Marc Glisse

Re: combine_conversions int->double->int

2012-04-27 Thread Richard Guenther
On Thu, Apr 26, 2012 at 8:43 PM, Marc Glisse wrote: > On Thu, 26 Apr 2012, Richard Guenther wrote: > >> On Wed, Apr 25, 2012 at 3:58 PM, Marc Glisse wrote: >>> >>> Here is take 2 on this patch, which seems cleaner. Bootstrapped and >>> regression tested. >>> >>> gcc/ChangeLog >>> >>> 2012-04-25  

Re: combine_conversions int->double->int

2012-04-26 Thread Marc Glisse
On Thu, 26 Apr 2012, Richard Guenther wrote: On Wed, Apr 25, 2012 at 3:58 PM, Marc Glisse wrote: Here is take 2 on this patch, which seems cleaner. Bootstrapped and regression tested. gcc/ChangeLog 2012-04-25  Marc Glisse          PR middle-end/27139        * tree-ssa-forwprop.c (combine_co

Re: combine_conversions int->double->int

2012-04-26 Thread Richard Guenther
On Wed, Apr 25, 2012 at 3:58 PM, Marc Glisse wrote: > On Wed, 25 Apr 2012, Richard Guenther wrote: > >> On Wed, Apr 25, 2012 at 10:12 AM, Marc Glisse >> wrote: >>> >>> Hello, >>> >>> a conversion like int->double->int is just the identity, as long as >>> double >>> is big enough to represent all

Re: combine_conversions int->double->int

2012-04-25 Thread Marc Glisse
On Wed, 25 Apr 2012, Richard Guenther wrote: On Wed, Apr 25, 2012 at 10:12 AM, Marc Glisse wrote: Hello, a conversion like int->double->int is just the identity, as long as double is big enough to represent all ints exactly. The most natural way I found to do this optimization is the attached

Re: combine_conversions int->double->int

2012-04-25 Thread Marc Glisse
First, thanks a lot for answering. On Wed, 25 Apr 2012, Richard Guenther wrote: On Wed, Apr 25, 2012 at 10:12 AM, Marc Glisse wrote: Hello, a conversion like int->double->int is just the identity, as long as double is big enough to represent all ints exactly. The most natural way I found to

Re: combine_conversions int->double->int

2012-04-25 Thread Richard Guenther
On Wed, Apr 25, 2012 at 10:12 AM, Marc Glisse wrote: > Hello, > > a conversion like int->double->int is just the identity, as long as double > is big enough to represent all ints exactly. The most natural way I found to > do this optimization is the attached: > > 2012-04-25  Marc Glisse   > >