https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107946
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:5b50850c3c6f2eceb8012dcc8d3cd5ddd94fac6c commit r13-4458-g5b50850c3c6f2eceb8012dcc8d3cd5ddd94fac6c Author: Richard Biener <rguent...@suse.de> Date: Thu Dec 1 16:14:14 2022 +0100 Add --param max-unswitch-depth The following adds a --param to limit the depth of unswitched loop nests. One can use --param max-unswitch-depth=1 to disable unswitching of outer loops (the innermost loop will then be unswitched). PR tree-optimization/107946 * params.opt (-param=max-unswitch-depth=): New. * doc/invoke.texi (--param=max-unswitch-depth): Document. * tree-ssa-loop-unswitch.cc (init_loop_unswitch_info): Honor --param=max-unswitch-depth