On 2 November 2022 15:45:39 CET, Tamar Christina via Gcc-patches 
<gcc-patches@gcc.gnu.org> wrote:
>Hi All,
>
>This patch adds initial support for early break vectorization in GCC.
>The support is added for any target that implements a vector cbranch optab.
>
>Concretely the kind of loops supported are of the forms:
>
> for (int i = 0; i < N; i++)
> {
>   <statements1>
>   if (<condition>)
>     <action>;
>   <statements2>
> }
>
>where <action> can be:
> - break
> - return

Just curious, but don't we have graphite for splitting loops on control flow, 
respectively reflow loops to help vectorization like in this case? Did you 
compare, and if so, what's missing?

thanks and cheers,

Reply via email to