https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108819
--- Comment #7 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:ca31bc3366c533a55bfd7f1b9f4959c0c9869a7b commit r13-6137-gca31bc3366c533a55bfd7f1b9f4959c0c9869a7b Author: Richard Biener <rguent...@suse.de> Date: Fri Feb 17 14:21:39 2023 +0100 tree-optimization/108819 - niter analysis ICE with unexpected constant The following makes sure we do not ICE on unfolded stmts like _1 = 1 & 1. PR tree-optimization/108819 * tree-ssa-loop-niter.cc (number_of_iterations_cltz): Check we have an SSA name as iv_2 as expected.