Re: [PATCH 4/8] vect: Determine input vectype for multiple lane-reducing

2024-06-28 Thread Richard Biener
on has its own input vectype, while reduction > - PHI records the input vectype with least lanes. */ > - if (lane_reducing) > - STMT_VINFO_REDUC_VECTYPE_IN (stmt_info) = vectype_in; > >enum vect_reduction_type reduction_type = STMT_VINFO_REDUC_TYPE (phi_info); >ST

Re: [PATCH 4/8] vect: Determine input vectype for multiple lane-reducing

2024-06-26 Thread Feng Xue OS
: Thursday, June 20, 2024 1:47 PM To: Richard Biener Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH 4/8] vect: Determine input vectype for multiple lane-reducing >> + if (lane_reducing_op_p (op.code)) >> + { >> + unsigned group_size = slp_node ?

Re: [PATCH 4/8] vect: Determine input vectype for multiple lane-reducing

2024-06-20 Thread Richard Biener
short>(short_c0_lo, short_c1_lo, sum_v0); > sum_v1 = dot_prod<8 * short>(short_c0_hi, short_c1_hi, sum_v1); > } > > For this purpose, we need to track the vectype_in that results in > the most ncopies, for this case, the type is <8 * short>. So the VF

Re: [PATCH 4/8] vect: Determine input vectype for multiple lane-reducing

2024-06-19 Thread Feng Xue OS
, 0 }; loop () { sum_v0 = dot_prod<16 * char>(char_a0, char_a1, sum_v0); sum_v1 = dot_prod<16 * char>(char_b0, char_b1, sum_v1); sum_v0 = dot_prod<8 * short>(short_c0_lo, short_c1_lo, sum_v0); sum_v1 = dot_prod<8 * short>(short_c0_hi,

Re: [PATCH 4/8] vect: Determine input vectype for multiple lane-reducing

2024-06-19 Thread Richard Biener
On Sun, Jun 16, 2024 at 9:25 AM Feng Xue OS wrote: > > The input vectype of reduction PHI statement must be determined before > vect cost computation for the reduction. Since lance-reducing operation has > different input vectype from normal one, so we need to traverse all reduction > statements

[PATCH 4/8] vect: Determine input vectype for multiple lane-reducing

2024-06-16 Thread Feng Xue OS
bd6b54f9cb236a4be71f8ad52 Mon Sep 17 00:00:00 2001 From: Feng Xue Date: Sun, 16 Jun 2024 13:00:32 +0800 Subject: [PATCH 4/8] vect: Determine input vectype for multiple lane-reducing operations The input vectype of reduction PHI statement must be determined before vect cost computation for the