https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119375
--- Comment #2 from Andi Kleen <andi-gcc at firstfloor dot org> --- I already had that commit in my tree, since it was already on trunk. Or did you think of something different? commit cfdb961588ba318a78e995d2e2cde43130acd993 Author: Alex Coplan <alex.cop...@arm.com> Date: Tue Nov 26 17:48:14 2024 +0000 vect: Set counts of early break exit blocks correctly [PR117790] This adds missing code to correctly set the counts of the exit blocks we create when building the CFG for a vectorized early break loop. gcc/ChangeLog: PR tree-optimization/117790 * tree-vect-loop-manip.cc (slpeel_tree_duplicate_loop_to_edge_cfg): Set profile counts for {main,alt}_loop_exit_block.