diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-04-26 17:50:18 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-05-07 15:00:21 -0400 |
commit | 4c07e591925bb02e71a499f1cf780ce63985dba0 (patch) | |
tree | c021623fdd58d360fd6d3ced4367570cef66717f /gcc/gimple-range-edge.h | |
parent | 156054e873194004161dab2f8d43dbccc5cd8f36 (diff) | |
download | gcc-4c07e591925bb02e71a499f1cf780ce63985dba0.zip gcc-4c07e591925bb02e71a499f1cf780ce63985dba0.tar.gz gcc-4c07e591925bb02e71a499f1cf780ce63985dba0.tar.bz2 |
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.
Diffstat (limited to 'gcc/gimple-range-edge.h')
0 files changed, 0 insertions, 0 deletions