RE: [PATCH] vect: Support early break with gswitch statements

2025-09-24 Thread Richard Biener
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

RE: [PATCH] vect: Support early break with gswitch statements

2025-09-22 Thread Tamar Christina
> -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

RE: [PATCH] vect: Support early break with gswitch statements

2025-09-22 Thread Richard Biener
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

RE: [PATCH] vect: Support early break with gswitch statements

2025-09-22 Thread Tamar Christina
> -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,

Re: [PATCH] vect: Support early break with gswitch statements

2025-09-22 Thread Richard Biener
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

Re: [PATCH] vect: Support early break with gswitch statements

2025-09-18 Thread Pengfei Li
> 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

Re: [PATCH] vect: Support early break with gswitch statements

2025-09-18 Thread Andrew Pinski
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

[PATCH] vect: Support early break with gswitch statements

2025-09-18 Thread Pengfei Li
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