Re: [PATCH] [PR116831] match.pd: Check trunc_mod vector obtap before folding.

2024-10-10 Thread Jennifer Schmitz
> On 10 Oct 2024, at 09:03, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Wed, 9 Oct 2024, Jennifer Schmitz wrote: > >> >>> On 8 Oct 2024, at 10:31, Richard Biener wrote: >>> >>> External email: Use caution opening links or attachments >>> >>

Re: [PATCH] [PR116831] match.pd: Check trunc_mod vector obtap before folding.

2024-10-10 Thread Richard Biener
On Wed, 9 Oct 2024, Jennifer Schmitz wrote: > > > On 8 Oct 2024, at 10:31, Richard Biener wrote: > > > > External email: Use caution opening links or attachments > > > > > > On Fri, 4 Oct 2024, Jennifer Schmitz wrote: > > > >> As in https://gcc.gnu.org/pipermail/gcc-patches/2024-September/66

Re: [PATCH] [PR116831] match.pd: Check trunc_mod vector obtap before folding.

2024-10-09 Thread Jennifer Schmitz
> On 8 Oct 2024, at 10:31, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Fri, 4 Oct 2024, Jennifer Schmitz wrote: > >> As in https://gcc.gnu.org/pipermail/gcc-patches/2024-September/663185.html, >> this patch guards the simplification x / y * y ==

Re: [PATCH] [PR116831] match.pd: Check trunc_mod vector obtap before folding.

2024-10-08 Thread Richard Biener
On Fri, 4 Oct 2024, Jennifer Schmitz wrote: > As in https://gcc.gnu.org/pipermail/gcc-patches/2024-September/663185.html, > this patch guards the simplification x / y * y == x -> x % y == 0 in > match.pd for vector types by a check for: > 1) Support of the mod optab for vectors OR > 2) Application

[PATCH] [PR116831] match.pd: Check trunc_mod vector obtap before folding.

2024-10-04 Thread Jennifer Schmitz
As in https://gcc.gnu.org/pipermail/gcc-patches/2024-September/663185.html, this patch guards the simplification x / y * y == x -> x % y == 0 in match.pd for vector types by a check for: 1) Support of the mod optab for vectors OR 2) Application before vector lowering for non-VL vectors. The patch