]> git.ipfire.org Git - thirdparty/gcc.git/commit
Default gimple_outgoing_range to not process switches.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 6 May 2024 16:04:24 +0000 (12:04 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 23 May 2024 20:48:44 +0000 (16:48 -0400)
commit76153635b9dc811b3ddc2c2e028d74c92d174c2e
tree1b3c95993228b578ee81fddb5a7e60fa26698b41
parentefc4255d4393cba3d2232a7152799e1b161c3062
Default gimple_outgoing_range to not process switches.

Change the default constructor to not process switches, add method to
enable/disable switch processing.

* gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
Do not allocate a range allocator at construction time.
(gimple_outgoing_range::~gimple_outgoing_range): Delete allocator
if one was allocated.
(gimple_outgoing_range::set_switch_limit): New.
(gimple_outgoing_range::switch_edge_range): Create an allocator if one
does not exist.
(gimple_outgoing_range::edge_range_p): Check for zero edges.
* gimple-range-edge.h (class gimple_outgoing_range): Adjust prototypes.
gcc/gimple-range-edge.cc
gcc/gimple-range-edge.h