Re: [PATCH] [x86] [RFC] Prevent loop vectorization if it's in a deeply nested big loop.

2024-11-29 Thread Richard Biener
On Fri, Nov 29, 2024 at 2:30 AM Hongtao Liu wrote: > > On Thu, Nov 28, 2024 at 4:57 PM Richard Biener > wrote: > > > > On Thu, Nov 28, 2024 at 3:04 AM Hongtao Liu wrote: > > > > > > On Wed, Nov 27, 2024 at 9:43 PM Richard Biener > > > wrote: > > > > > > > > On Wed, Nov 27, 2024 at 4:26 AM liuho

Re: [PATCH] [x86] [RFC] Prevent loop vectorization if it's in a deeply nested big loop.

2024-11-28 Thread Hongtao Liu
On Thu, Nov 28, 2024 at 4:57 PM Richard Biener wrote: > > On Thu, Nov 28, 2024 at 3:04 AM Hongtao Liu wrote: > > > > On Wed, Nov 27, 2024 at 9:43 PM Richard Biener > > wrote: > > > > > > On Wed, Nov 27, 2024 at 4:26 AM liuhongt wrote: > > > > > > > > When loop requires any kind of versioning wh

Re: [PATCH] [x86] [RFC] Prevent loop vectorization if it's in a deeply nested big loop.

2024-11-28 Thread Richard Biener
On Thu, Nov 28, 2024 at 3:04 AM Hongtao Liu wrote: > > On Wed, Nov 27, 2024 at 9:43 PM Richard Biener > wrote: > > > > On Wed, Nov 27, 2024 at 4:26 AM liuhongt wrote: > > > > > > When loop requires any kind of versioning which could increase register > > > pressure too much, and it's in a deeply

Re: [PATCH] [x86] [RFC] Prevent loop vectorization if it's in a deeply nested big loop.

2024-11-27 Thread Hongtao Liu
On Wed, Nov 27, 2024 at 9:43 PM Richard Biener wrote: > > On Wed, Nov 27, 2024 at 4:26 AM liuhongt wrote: > > > > When loop requires any kind of versioning which could increase register > > pressure too much, and it's in a deeply nest big loop, don't do > > vectorization. > > > > I tested the pat

Re: [PATCH] [x86] [RFC] Prevent loop vectorization if it's in a deeply nested big loop.

2024-11-27 Thread Richard Biener
On Wed, Nov 27, 2024 at 4:26 AM liuhongt wrote: > > When loop requires any kind of versioning which could increase register > pressure too much, and it's in a deeply nest big loop, don't do > vectorization. > > I tested the patch with both Ofast and O2 for SPEC2017, besides > 548.exchange_r, > ot

[PATCH] [x86] [RFC] Prevent loop vectorization if it's in a deeply nested big loop.

2024-11-26 Thread liuhongt
When loop requires any kind of versioning which could increase register pressure too much, and it's in a deeply nest big loop, don't do vectorization. I tested the patch with both Ofast and O2 for SPEC2017, besides 548.exchange_r, other benchmarks are same binary. Bootstrapped and regtested 0on x