Re: [PATCH 1/3] SVE intrinsics: Fold constant operands.

2024-09-03 Thread Jennifer Schmitz
> On 3 Sep 2024, at 10:39, Richard Biener wrote: > > External email: Use caution opening links or attachments > > > On Tue, 3 Sep 2024, Andrew Pinski wrote: > >> On Fri, Aug 30, 2024 at 4:41 AM Jennifer Schmitz wrote: >>> >>> This patch implements constant folding of binary operations for S

Re: [PATCH 1/3] SVE intrinsics: Fold constant operands.

2024-09-03 Thread Richard Biener
On Tue, 3 Sep 2024, Andrew Pinski wrote: > On Fri, Aug 30, 2024 at 4:41 AM Jennifer Schmitz wrote: > > > > This patch implements constant folding of binary operations for SVE > > intrinsics > > by calling the constant-folding mechanism of the middle-end for a given > > tree_code. > > In fold-con

Re: [PATCH 1/3] SVE intrinsics: Fold constant operands.

2024-09-03 Thread Andrew Pinski
On Fri, Aug 30, 2024 at 4:41 AM Jennifer Schmitz wrote: > > This patch implements constant folding of binary operations for SVE intrinsics > by calling the constant-folding mechanism of the middle-end for a given > tree_code. > In fold-const.cc, the code for folding vector constants was moved from

Re: [PATCH 1/3] SVE intrinsics: Fold constant operands.

2024-09-02 Thread Richard Sandiford
Jennifer Schmitz writes: > @@ -1365,6 +1368,91 @@ simplify_const_binop (tree_code code, tree op, tree > other_op, >return NULL_TREE; > } > > +/* Combine two (vector) constants ARG1 and ARG2 element-wise under operation > + CODE using function ELT_CONST_BINOP to produce a new (vector) con

Re: [PATCH 1/3] SVE intrinsics: Fold constant operands.

2024-09-02 Thread Jennifer Schmitz
d-const.cc (const_binop): Remove cases for vector constants. >> (vector_const_binop): New function that folds vector constants >> element-wise. >> (int_const_binop): Remove call to wide_int_binop. >> (poly_int_binop): Add call to wide_int_binop. >&

Re: [PATCH 1/3] SVE intrinsics: Fold constant operands.

2024-08-30 Thread Richard Sandiford
_int_binop. > > From 2a773d8289b5ec5ab2f2e0d03cbaa35b48bc44b2 Mon Sep 17 00:00:00 2001 > From: Jennifer Schmitz > Date: Thu, 29 Aug 2024 04:35:49 -0700 > Subject: [PATCH 1/3] SVE intrinsics: Fold constant operands. > > This patch implements constant folding of binary operations f

[PATCH 1/3] SVE intrinsics: Fold constant operands.

2024-08-30 Thread Jennifer Schmitz
This patch implements constant folding of binary operations for SVE intrinsics by calling the constant-folding mechanism of the middle-end for a given tree_code. In fold-const.cc, the code for folding vector constants was moved from const_binop to a new function vector_const_binop. This function ta