This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix PR tree-optimization/40074 - bug in vectorizer analysis


> @@ -2265,8 +2267,9 @@ vect_analyze_group_access (struct data_r
>           the type to get COUNT_IN_BYTES.  */
>        count_in_bytes = type_size * count;
>
> -      /* Check that the size of the interleaving is not greater than STEP.
> */
> -      if (dr_step < count_in_bytes)
> +      /* Check that the size of the interleaving (including gaps) is not
> greater
> +         than STEP.  */
> +      if (dr_step && dr_step < count_in_bytes + gaps * type_size)
>          {
>            if (vect_print_dump_info (REPORT_DETAILS))
>              {

The line looks too long.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]