Process EH edges again and call get_tree_range on non gimple_range_ssa_p names.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 18 Oct 2021 17:52:18 +0000 (13:52 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 18 Oct 2021 22:01:22 +0000 (18:01 -0400)
commit4d92a69fc5882c86aab63d52382b393d4f20b3ed
tree8ba53b969f6e45f77f0f1b8ae087c2215b43a155
parent38733234024697d2144613c4a992e970f40afad8
Process EH edges again and call get_tree_range on non gimple_range_ssa_p names.

PR tree-optimization/102796
gcc/
* gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
normally.  Return get_tree_range for non gimple_range_ssa_p names.
(gimple_ranger::range_of_stmt): Use get_tree_range for non
gimple_range_ssa_p names.

gcc/testsuite/
* g++.dg/pr102796.C: New.
gcc/gimple-range.cc
gcc/testsuite/g++.dg/pr102796.C [new file with mode: 0644]