On Mon, 22 Sep 2025, Tamar Christina wrote:
> > -Original Message-
> > From: Richard Biener
> > Sent: Monday, September 22, 2025 2:45 PM
> > To: Tamar Christina
> > Cc: Pengfei Li ; gcc-patches@gcc.gnu.org
> > Subject: RE: [PATCH] vect: Support
> -Original Message-
> From: Richard Biener
> Sent: Monday, September 22, 2025 2:45 PM
> To: Tamar Christina
> Cc: Pengfei Li ; gcc-patches@gcc.gnu.org
> Subject: RE: [PATCH] vect: Support early break with gswitch statements
>
> On Mon, 22 Sep 202
On Mon, 22 Sep 2025, Tamar Christina wrote:
> > -Original Message-
> > From: Richard Biener
> > Sent: 22 September 2025 12:34
> > To: Pengfei Li
> > Cc: gcc-patches@gcc.gnu.org; rguent...@suse.de; Tamar Christina
> >
> > Subject: Re: [PAT
> -Original Message-
> From: Richard Biener
> Sent: 22 September 2025 12:34
> To: Pengfei Li
> Cc: gcc-patches@gcc.gnu.org; rguent...@suse.de; Tamar Christina
>
> Subject: Re: [PATCH] vect: Support early break with gswitch statements
>
> On Thu, Sep 18,
On Thu, Sep 18, 2025 at 2:34 PM Pengfei Li wrote:
>
> This patch adds vectorization support to early-break loops with gswitch
> statements. Such gswitches may come from original switch-case constructs
> in the source or the iftoswitch pass which rewrites if conditions with a
> chain of comparisons
> Does this fix https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 ?
Ah yes, thanks for reminding.
I will wait for review comments first, and add the PR reference in my
next version then.
Thanks,
Pengfei
On Thu, Sep 18, 2025 at 5:34 AM Pengfei Li wrote:
>
> This patch adds vectorization support to early-break loops with gswitch
> statements. Such gswitches may come from original switch-case constructs
> in the source or the iftoswitch pass which rewrites if conditions with a
> chain of comparisons
This patch adds vectorization support to early-break loops with gswitch
statements. Such gswitches may come from original switch-case constructs
in the source or the iftoswitch pass which rewrites if conditions with a
chain of comparisons, like below, to gswitch statements.
if (a[i] == c1