Re: [RFC PATCH 2/5] vect: Don't guard scalar epilogue for inverted loops

2024-10-29 Thread Richard Biener
On Mon, 28 Oct 2024, Alex Coplan wrote: > For loops with LOOP_VINFO_EARLY_BREAKS_VECT_PEELED we should always > enter the scalar epilogue, so avoid emitting a guard on entry to the > epilogue. OK. I guess this can go in independently? Richard. > gcc/ChangeLog: > > * tree-vect-loop-manip

[RFC PATCH 2/5] vect: Don't guard scalar epilogue for inverted loops

2024-10-28 Thread Alex Coplan
For loops with LOOP_VINFO_EARLY_BREAKS_VECT_PEELED we should always enter the scalar epilogue, so avoid emitting a guard on entry to the epilogue. gcc/ChangeLog: * tree-vect-loop-manip.cc (vect_do_peeling): Avoid emitting an epilogue guard for inverted early-exit loops. --- gcc/t