aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-edge.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2021-04-26 17:50:18 -0400
committerAndrew MacLeod <amacleod@redhat.com>2021-05-07 15:00:21 -0400
commit4c07e591925bb02e71a499f1cf780ce63985dba0 (patch)
treec021623fdd58d360fd6d3ced4367570cef66717f /gcc/gimple-range-edge.h
parent156054e873194004161dab2f8d43dbccc5cd8f36 (diff)
downloadgcc-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