https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106593
--- Comment #2 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:4cc0d3ebaee4b54280ff0466d8e5b351a3b5bacc commit r13-2031-g4cc0d3ebaee4b54280ff0466d8e5b351a3b5bacc Author: Richard Biener <rguent...@suse.de> Date: Fri Aug 12 12:20:13 2022 +0200 tree-optimization/106593 - fix ICE with backward threading With the last re-org I failed to make sure to not add SSA names nor supported by ranger into m_imports which then triggers an ICE in range_on_path_entry because range_of_expr returns false. PR tree-optimization/106593 * tree-ssa-threadbackward.cc (back_threader::find_paths): If the imports from the conditional do not satisfy gimple_range_ssa_p don't try to thread anything.