Re: [PATCH v2] vect: Use combined peeling and versioning for mutually aligned DRs

2025-06-23 Thread Richard Biener
On Wed, 11 Jun 2025, Pengfei Li wrote: > Current GCC uses either peeling or versioning, but not in combination, > to handle unaligned data references (DRs) during vectorization. This > limitation causes some loops with early break to fall back to scalar > code at runtime. > > Consider the followi

[PATCH v2] vect: Use combined peeling and versioning for mutually aligned DRs

2025-06-11 Thread Pengfei Li
Current GCC uses either peeling or versioning, but not in combination, to handle unaligned data references (DRs) during vectorization. This limitation causes some loops with early break to fall back to scalar code at runtime. Consider the following loop with DRs in its early break condition: