Don't over-allocate switch default range object.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 26 Apr 2021 21:50:18 +0000 (17:50 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 7 May 2021 19:00:21 +0000 (15:00 -0400)
commit4c07e591925bb02e71a499f1cf780ce63985dba0
treec021623fdd58d360fd6d3ced4367570cef66717f
parent156054e873194004161dab2f8d43dbccc5cd8f36
Don't over-allocate switch default range object.

We were always allocating the 255 max ranges for the default condition.
Instead, use int_range_max to build the default range, then allocate and
store only what is needed.

* gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
default range into a temp and allocate only what is needed.
gcc/gimple-range-edge.cc