https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117113
--- Comment #4 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:0675eb17480bada678bf2769d39732027abcd6d0 commit r15-7349-g0675eb17480bada678bf2769d39732027abcd6d0 Author: Richard Biener <rguent...@suse.de> Date: Mon Feb 3 15:12:52 2025 +0100 tree-optimization/117113 - ICE with unroll-and-jam When there's an inner loop without virtual header PHI but the outer loop has one the fusion process cannot handle the need to create an inner loop virtual header PHI. Punt in this case. PR tree-optimization/117113 * gimple-loop-jam.cc (unroll_jam_possible_p): Detect when we cannot handle virtual SSA update. * gcc.dg/torture/pr117113.c: New testcase.