Re: [PATCH][GCC] Optimize unnecessary casts out of binary math operations.

2019-09-06 Thread Barnaby Wilks
On 9/6/19 12:53 PM, Richard Biener wrote: > On Fri, 6 Sep 2019, Richard Biener wrote: > >> On Thu, 5 Sep 2019, Barnaby Wilks wrote: >> >>> Hello, >>> >>> This patch changes a match.pd expression so that binary math expressions >>> will not be done in the precision of it's widest type if >>> -funsa

Re: [PATCH][GCC] Optimize unnecessary casts out of binary math operations.

2019-09-06 Thread Richard Biener
On Fri, 6 Sep 2019, Richard Biener wrote: > On Thu, 5 Sep 2019, Barnaby Wilks wrote: > > > Hello, > > > > This patch changes a match.pd expression so that binary math expressions > > will not be done in the precision of it's widest type if > > -funsafe-math-optimizations is enabled. > > > > Th

Re: [PATCH][GCC] Optimize unnecessary casts out of binary math operations.

2019-09-06 Thread Richard Biener
On Thu, 5 Sep 2019, Barnaby Wilks wrote: > Hello, > > This patch changes a match.pd expression so that binary math expressions > will not be done in the precision of it's widest type if > -funsafe-math-optimizations is enabled. > > This patch has been extracted from > https://gcc.gnu.org/ml/gcc

[PATCH][GCC] Optimize unnecessary casts out of binary math operations.

2019-09-05 Thread Barnaby Wilks
Hello, This patch changes a match.pd expression so that binary math expressions will not be done in the precision of it's widest type if -funsafe-math-optimizations is enabled. This patch has been extracted from https://gcc.gnu.org/ml/gcc-patches/2019-09/msg00072.html based on upstream comments.