https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93439
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- OK, so the reason is that when we actually create the parallel decl last_clique is not yet up to its maximum since we later loop_version another loop in the source function. The solution is to move the last clique setting to function outlining I guess. Testing patch.