tree-optimization/108819 - niter analysis ICE with unexpected constant
authorRichard Biener <rguenther@suse.de>
Fri, 17 Feb 2023 13:21:39 +0000 (14:21 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 20 Feb 2023 07:44:16 +0000 (08:44 +0100)
commitca31bc3366c533a55bfd7f1b9f4959c0c9869a7b
tree3fa70d047339b95e2fd8a31910c0a081a9ece7b8
parent6e16c354f5dee8c3d8a59a5412d548e94cd5cfce
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.
gcc/tree-ssa-loop-niter.cc