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 >>> wi

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

2019-09-05 Thread Barnaby Wilks
don't have write access, so if OK for trunk then can someone commit on my behalf? Regards Barney gcc/ChangeLog: 2019-09-05 Barnaby Wilks * match.pd: Add flag_unsafe_math_optimizations check before deciding on the widest type in a binary math operation. gcc/testsuite

Re: [PATCH][GCC] Simplify to single precision where possible for binary/builtin maths operations.

2019-09-03 Thread Barnaby Wilks
On 9/3/19 9:23 AM, Richard Biener wrote: > On Mon, 2 Sep 2019, Barnaby Wilks wrote: > >> Hello, >> >> This patch introduces an optimization for narrowing binary and builtin >> math operations to the smallest type when unsafe math optimizations are >> enab

[PATCH][GCC] Simplify to single precision where possible for binary/builtin maths operations.

2019-09-02 Thread Barnaby Wilks
x27;t have write access, so if OK for trunk then can someone commit on my behalf? Regards, Barney gcc/ChangeLog: 2019-09-02 Barnaby Wilks * builtins.c (mathfn_built_in): Expose find implicit builtin parameter. * builtins.h (mathfn_built_in): Likewise. * match.pd