https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116796
--- Comment #3 from GCC 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:e97c75d668bacd8a2e901b819e00156f6e9f4c6c commit r15-3793-ge97c75d668bacd8a2e901b819e00156f6e9f4c6c Author: Richard Biener <rguent...@suse.de> Date: Mon Sep 23 11:05:37 2024 +0200 tree-optimization/116796 - virtual LC SSA broken after unrolling When the unroller unloops loops it tracks whether it changes any nesting relationship of remaining loops but when scanning a loops preheader it fails to pass down the LC-SSA-invalidated bitmap, losing the fact that an unrolled formerly inner loop can now be placed on an exit of its outer loop. The following fixes that. PR tree-optimization/116796 * cfgloopmanip.cc (fix_loop_placements): Get LC-SSA-invalidated bitmap and pass it on. (remove_path): Pass LC-SSA-invalidated to fix_loop_placements.