This repository was archived by the owner on Aug 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1405,14 +1405,17 @@ class PhaseIdealLoop : public PhaseTransform {
1405
1405
void require_nodes_final (uint live_at_begin, bool check_estimate) {
1406
1406
assert (_nodes_required < UINT_MAX, " Bad state (final)." );
1407
1407
1408
+ #ifdef ASSERT
1408
1409
if (check_estimate) {
1409
- // Assert that the node budget request was not off by too much (x2).
1410
+ // Check that the node budget request was not off by too much (x2).
1410
1411
// Should this be the case we _surely_ need to improve the estimates
1411
1412
// used in our budget calculations.
1412
- assert (C->live_nodes () - live_at_begin <= 2 * _nodes_required,
1413
- " Bad node estimate: actual = %d >> request = %d" ,
1414
- C->live_nodes () - live_at_begin, _nodes_required);
1413
+ if (C->live_nodes () - live_at_begin > 2 * _nodes_required) {
1414
+ log_info (compilation)(" Bad node estimate: actual = %d >> request = %d" ,
1415
+ C->live_nodes () - live_at_begin, _nodes_required);
1416
+ }
1415
1417
}
1418
+ #endif
1416
1419
// Assert that we have stayed within the node budget limit.
1417
1420
assert (C->live_nodes () < C->max_node_limit (),
1418
1421
" Exceeding node budget limit: %d + %d > %d (request = %d)" ,
You can’t perform that action at this time.
0 commit comments