Re: [PATCH] [PR86710][PR116826] match.pd: Fold logarithmic identities.

2024-10-11 Thread Jennifer Schmitz
> On 11 Oct 2024, at 13:18, Kyrylo Tkachov wrote: > > Hi Jennifer, > >> On 11 Oct 2024, at 10:00, Jennifer Schmitz wrote: >> >> >> >>> On 8 Oct 2024, at 10:44, Richard Biener wrote: >>> >>> External email: Use caution opening links or attachments >>> >>> >>> On Thu, 3 Oct 2024, Jennife

Re: [PATCH] [PR86710][PR116826] match.pd: Fold logarithmic identities.

2024-10-11 Thread Kyrylo Tkachov
Hi Jennifer, > On 11 Oct 2024, at 10:00, Jennifer Schmitz wrote: > > > >> On 8 Oct 2024, at 10:44, Richard Biener wrote: >> >> External email: Use caution opening links or attachments >> >> >> On Thu, 3 Oct 2024, Jennifer Schmitz wrote: >> >>> >>> On 1 Oct 2024, at 14:27, Richard B

Re: [PATCH] [PR86710][PR116826] match.pd: Fold logarithmic identities.

2024-10-11 Thread Jennifer Schmitz
> On 8 Oct 2024, at 10:44, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Thu, 3 Oct 2024, Jennifer Schmitz wrote: > >> >> >>> On 1 Oct 2024, at 14:27, Richard Biener wrote: >>> >>> External email: Use caution opening links or attachments >>>

Re: [PATCH] [PR86710][PR116826] match.pd: Fold logarithmic identities.

2024-10-08 Thread Richard Biener
On Thu, 3 Oct 2024, Jennifer Schmitz wrote: > > > > On 1 Oct 2024, at 14:27, Richard Biener wrote: > > > > External email: Use caution opening links or attachments > > > > > > On Tue, 1 Oct 2024, Jennifer Schmitz wrote: > > > >> This patch implements 4 rules for logarithmic identities in ma

Re: [PATCH] [PR86710][PR116826] match.pd: Fold logarithmic identities.

2024-10-03 Thread Jennifer Schmitz
> On 1 Oct 2024, at 14:27, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Tue, 1 Oct 2024, Jennifer Schmitz wrote: > >> This patch implements 4 rules for logarithmic identities in match.pd >> under -funsafe-math-optimizations: >> 1) logN(1.0/a) ->

[PATCH] [PR86710][PR116826] match.pd: Fold logarithmic identities.

2024-10-01 Thread Jennifer Schmitz
This patch implements 4 rules for logarithmic identities in match.pd under -funsafe-math-optimizations: 1) logN(1.0/a) -> -logN(a). This avoids the division instruction. 2) logN(C/a) -> logN(C) - logN(a), where C is a real constant. Same as 1). 3) logN(a) + logN(b) -> logN(a*b). This reduces the nu

Re: [PATCH] [PR86710][PR116826] match.pd: Fold logarithmic identities.

2024-10-01 Thread Richard Biener
On Tue, 1 Oct 2024, Jennifer Schmitz wrote: > This patch implements 4 rules for logarithmic identities in match.pd > under -funsafe-math-optimizations: > 1) logN(1.0/a) -> -logN(a). This avoids the division instruction. > 2) logN(C/a) -> logN(C) - logN(a), where C is a real constant. Same as 1). >