Re: [PATCH] tree-optimization/117000 - elide .REDUC_IOR with compare against zero

2024-10-09 Thread Uros Bizjak
On Tue, Oct 8, 2024 at 10:19 AM Richard Biener wrote: > > The following adds a pattern to elide a .REDUC_IOR operation when > the result is compared against zero with a cbranch. I've resorted > to using can_compare_p since that's what RTL expansion eventually > checks - while GIMPLE allowed whole

[PATCH] tree-optimization/117000 - elide .REDUC_IOR with compare against zero

2024-10-08 Thread Richard Biener
The following adds a pattern to elide a .REDUC_IOR operation when the result is compared against zero with a cbranch. I've resorted to using can_compare_p since that's what RTL expansion eventually checks - while GIMPLE allowed whole vector equality compares for long I'll notice vector lowering wo