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
: 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 ?
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
, 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,
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
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