Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-25 Thread Jennifer Schmitz
> On 25 Oct 2024, at 14:39, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Wed, 23 Oct 2024, Jennifer Schmitz wrote: > >> >> >>> On 22 Oct 2024, at 13:14, Richard Biener wrote: >>> >>> External email: Use caution opening links or attachments >

Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-25 Thread Richard Biener
On Wed, 23 Oct 2024, Jennifer Schmitz wrote: > > > > On 22 Oct 2024, at 13:14, Richard Biener wrote: > > > > External email: Use caution opening links or attachments > > > > > > On Tue, 22 Oct 2024, Jennifer Schmitz wrote: > > > >> > >> > >>> On 22 Oct 2024, at 11:05, Richard Biener wrot

Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-23 Thread Jennifer Schmitz
> On 22 Oct 2024, at 13:14, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Tue, 22 Oct 2024, Jennifer Schmitz wrote: > >> >> >>> On 22 Oct 2024, at 11:05, Richard Biener wrote: >>> >>> External email: Use caution opening links or attachments >

Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-22 Thread Richard Biener
On Tue, 22 Oct 2024, Jennifer Schmitz wrote: > > > > On 21 Oct 2024, at 10:51, Richard Biener wrote: > > > > External email: Use caution opening links or attachments > > > > > > On Fri, 18 Oct 2024, Jennifer Schmitz wrote: > > > >> This patch adds the following two simplifications in match.

Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-22 Thread Richard Biener
On Tue, 22 Oct 2024, Jennifer Schmitz wrote: > > > > On 22 Oct 2024, at 11:05, Richard Biener wrote: > > > > External email: Use caution opening links or attachments > > > > > > On Tue, 22 Oct 2024, Jennifer Schmitz wrote: > > > >> > >> > >>> On 21 Oct 2024, at 10:51, Richard Biener wrot

Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-22 Thread Jennifer Schmitz
> On 22 Oct 2024, at 11:05, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Tue, 22 Oct 2024, Jennifer Schmitz wrote: > >> >> >>> On 21 Oct 2024, at 10:51, Richard Biener wrote: >>> >>> External email: Use caution opening links or attachments >

Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-22 Thread Jennifer Schmitz
> On 21 Oct 2024, at 10:51, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Fri, 18 Oct 2024, Jennifer Schmitz wrote: > >> This patch adds the following two simplifications in match.pd: >> - pow (1.0/x, y) to pow (x, -y), avoiding the division >> -

Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-21 Thread Richard Biener
On Fri, 18 Oct 2024, Jennifer Schmitz wrote: > This patch adds the following two simplifications in match.pd: > - pow (1.0/x, y) to pow (x, -y), avoiding the division > - pow (0.0, x) to 0.0, avoiding the call to pow. > The patterns are guarded by flag_unsafe_math_optimizations, > !flag_trapping_m

Re: [PATCH] match.pd: Add std::pow folding optimizations.

2024-10-18 Thread Andrew Pinski
On Fri, Oct 18, 2024 at 5:09 AM Jennifer Schmitz wrote: > > This patch adds the following two simplifications in match.pd: > - pow (1.0/x, y) to pow (x, -y), avoiding the division > - pow (0.0, x) to 0.0, avoiding the call to pow. > The patterns are guarded by flag_unsafe_math_optimizations, > !fl

[PATCH] match.pd: Add std::pow folding optimizations.

2024-10-18 Thread Jennifer Schmitz
This patch adds the following two simplifications in match.pd: - pow (1.0/x, y) to pow (x, -y), avoiding the division - pow (0.0, x) to 0.0, avoiding the call to pow. The patterns are guarded by flag_unsafe_math_optimizations, !flag_trapping_math, !flag_errno_math, !HONOR_SIGNED_ZEROS, and !HONOR_I