Re: combine_conversions int-double-int

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

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-26 Thread Richard Guenther
On Wed, Apr 25, 2012 at 3:58 PM, Marc Glisse marc.gli...@inria.fr wrote: On Wed, 25 Apr 2012, Richard Guenther wrote: On Wed, Apr 25, 2012 at 10:12 AM, Marc Glisse marc.gli...@inria.fr wrote: Hello, a conversion like int-double-int is just the identity, as long as double is big enough to

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 marc.gli...@inria.fr wrote: Here is take 2 on this patch, which seems cleaner. Bootstrapped and regression tested. gcc/ChangeLog 2012-04-25  Marc Glisse  marc.gli...@inria.fr        PR middle-end/27139

combine_conversions int-double-int

2012-04-25 Thread Marc Glisse
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 marc.gli...@inria.fr PR middle-end/27139 *

Re: combine_conversions int-double-int

2012-04-25 Thread Richard Guenther
On Wed, Apr 25, 2012 at 10:12 AM, Marc Glisse marc.gli...@inria.fr 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

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 marc.gli...@inria.fr 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

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 marc.gli...@inria.fr 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