https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103219
--- Comment #4 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:d1ca8aeaf34a717dffd8f4a1f0333d25c7d1c904 commit r12-5264-gd1ca8aeaf34a717dffd8f4a1f0333d25c7d1c904 Author: Richard Biener <rguent...@suse.de> Date: Mon Nov 15 11:07:55 2021 +0100 tree-optimization/103219 - avoid ICE in unroll-and-jam For no particularly good reason unroll-and-jam uses single_dom_exit to determine the exit for the region it wants to run VN on. That happens to ICE because of the dominance restriction. Use single_exit instead. 2021-11-15 Richard Biener <rguent...@suse.de> PR tree-optimization/103219 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Use single_exit to determine the exit for the VN region. * gcc.dg/torture/pr103219.c: New testcase.