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

Backport-of: 1ea437a4b87381b558cf8157ac52fc03e37ac507
  • Loading branch information
DamonFool authored and John Jiang committed Nov 5, 2021
1 parent 5aa125e commit e929b18cb10bb182e3c88c83d0a269e85a590eb9
Showing 1 changed file with 1 addition and 1 deletion.
@@ -769,7 +769,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 e929b18

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on e929b18 Nov 5, 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.