Do not call range_of_ssa_name_with_loop_info with the loop tree root.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 13 Oct 2020 07:05:23 +0000 (03:05 -0400)
committerAldy Hernandez <aldyh@redhat.com>
Wed, 14 Oct 2020 14:57:37 +0000 (10:57 -0400)
commita121715bcab6e8980768d142b9781c45821130ac
treeb5db83d90b2a4aebebf3642d4886ff450162e8e4
parentea9535e75e9118493879cb76520c85272981ebda
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.
gcc/gimple-range.cc
gcc/testsuite/gcc.dg/pr97396.c [new file with mode: 0644]