Skip to content
Permalink
Browse files
8272720: Fix the implementation of loop unrolling heuristic with Loop…
…PercentProfileLimit

Backport-of: 1ea437a4b87381b558cf8157ac52fc03e37ac507
  • Loading branch information
Larry-N authored and DamonFool committed Oct 18, 2021
1 parent ddb89c3 commit efdf41167e26fe3f4114e7db7a1e60110261d164
Showing 1 changed file with 1 addition and 1 deletion.
@@ -899,7 +899,7 @@ bool IdealLoopTree::policy_unroll(PhaseIdealLoop *phase) {
// Progress defined as current size less than 20% larger than previous size.
if (UseSuperWord && cl->node_count_before_unroll() > 0 &&
future_unroll_cnt > LoopUnrollMin &&
(future_unroll_cnt - 1) * (100 / LoopPercentProfileLimit) > cl->profile_trip_cnt() &&
(future_unroll_cnt - 1) * (100.0 / LoopPercentProfileLimit) > cl->profile_trip_cnt() &&
1.2 * cl->node_count_before_unroll() < (double)_body.size()) {
return false;
}

1 comment on commit efdf411

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on efdf411 Oct 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.