We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997c55f commit f3708bbCopy full SHA for f3708bb
src/hotspot/share/opto/loopnode.cpp
@@ -2511,9 +2511,11 @@ uint IdealLoopTree::est_loop_clone_sz(uint factor) const {
2511
}
2512
2513
2514
- // Add data (x1.5) and control (x1.0) count to estimate iff both are > 0.
+ // Add data and control count (x2.0) to estimate iff both are > 0. This is
2515
+ // a rather pessimistic estimate for the most part, in particular for some
2516
+ // complex loops, but still not enough to capture all loops.
2517
if (ctrl_edge_out_cnt > 0 && data_edge_out_cnt > 0) {
- estimate += ctrl_edge_out_cnt + data_edge_out_cnt + data_edge_out_cnt / 2;
2518
+ estimate += 2 * (ctrl_edge_out_cnt + data_edge_out_cnt);
2519
2520
2521
return estimate;
0 commit comments