https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97396
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>: https://gcc.gnu.org/g:a121715bcab6e8980768d142b9781c45821130ac commit r11-3880-ga121715bcab6e8980768d142b9781c45821130ac Author: Aldy Hernandez <al...@redhat.com> Date: Tue Oct 13 03:05:23 2020 -0400 Do not call range_of_ssa_name_with_loop_info with the loop tree root. gcc/ChangeLog: PR tree-optimization/97396 * gimple-range.cc (gimple_ranger::range_of_phi): Do not call range_of_ssa_name_with_loop_info with the loop tree root. gcc/testsuite/ChangeLog: * gcc.dg/pr97396.c: New test.