comparison src/share/vm/opto/loopopts.cpp @ 20671:9e69e8d1c900

8058148: MaxNodeLimit and LiveNodeCountInliningCutoff Reviewed-by: kvn, roland
author vlivanov
date Mon, 24 Nov 2014 07:29:03 -0800
parents 4077c61b03a0
children b6585ac86988
comparison
equal deleted inserted replaced
20670:6a528388c7da 20671:9e69e8d1c900
732 // Bail out if the region and its phis have too many users. 732 // Bail out if the region and its phis have too many users.
733 int weight = 0; 733 int weight = 0;
734 for (DUIterator_Fast imax, i = region->fast_outs(imax); i < imax; i++) { 734 for (DUIterator_Fast imax, i = region->fast_outs(imax); i < imax; i++) {
735 weight += region->fast_out(i)->outcnt(); 735 weight += region->fast_out(i)->outcnt();
736 } 736 }
737 int nodes_left = MaxNodeLimit - C->live_nodes(); 737 int nodes_left = C->max_node_limit() - C->live_nodes();
738 if (weight * 8 > nodes_left) { 738 if (weight * 8 > nodes_left) {
739 #ifndef PRODUCT 739 #ifndef PRODUCT
740 if (PrintOpto) 740 if (PrintOpto)
741 tty->print_cr("*** Split-if bails out: %d nodes, region weight %d", C->unique(), weight); 741 tty->print_cr("*** Split-if bails out: %d nodes, region weight %d", C->unique(), weight);
742 #endif 742 #endif