Re: [PATCH 2/6] vect: Remove non-SLP path from vectorizable_reduction

2025-05-07 Thread Richard Biener
On Tue, 6 May 2025, andre.simoesdiasvie...@arm.com wrote: > > Prunes code from the trivial true/false conditions. - gcc_assert (vec_num == 1 || 1); + gcc_assert (vec_num == 1); that looks like a now stronger assert, pruning would have removed the assert instead? if (ncopies > 1 - &&

[PATCH 2/6] vect: Remove non-SLP path from vectorizable_reduction

2025-05-06 Thread andre.simoesdiasvieira
Prunes code from the trivial true/false conditions. --- gcc/tree-vect-loop.cc | 540 -- 1 file changed, 155 insertions(+), 385 deletions(-) diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 69b692f1673..4ab7d227e42 100644 --- a/gcc/tree-vect