https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117113
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:f4dbdeabb2944d014d506a537a576a6f9a1f4c1f commit r12-11225-gf4dbdeabb2944d014d506a537a576a6f9a1f4c1f 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. (cherry picked from commit 0675eb17480bada678bf2769d39732027abcd6d0)