Adjust rangers recomputation depth based on the number of BBs.
commit9e4da946c4263a4c89d5fc365b3c97ae244c5018
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 8 Aug 2024 20:37:28 +0000 (8 16:37 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 9 Aug 2024 18:49:46 +0000 (9 14:49 -0400)
tree5b5c0e047dde6043301112c2ac64ccf94d81dcc9
parent5ce3874b3c2fdd76f506005cb1171a732af7c807
Adjust rangers recomputation depth based on the number of BBs.

As the number of block increase, recomputations can become more
expensive.  Adjust the depth limit to avoid excessive compile time.

PR tree-optimization/114855
* gimple-range-gori.cc (gori_compute::gori_compute): Adjust
ranger_recompute_depth limit based on the number of BBs.
(gori_compute::may_recompute_p): Use previosuly calculated value.
* gimple-range-gori.h (gori_compute::m_recompute_depth): New.
gcc/gimple-range-gori.cc
gcc/gimple-range-gori.h