Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
8272720: Fix the implementation of loop unrolling heuristic with Loop…
Browse files Browse the repository at this point in the history
…PercentProfileLimit

Backport-of: 1ea437a4b87381b558cf8157ac52fc03e37ac507
  • Loading branch information
wkia authored and Yuri Nesterenko committed Sep 15, 2022
1 parent 19ce717 commit 89bdd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/opto/loopTransform.cpp
Expand Up @@ -826,7 +826,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;
}
Expand Down

1 comment on commit 89bdd28

@openjdk-notifier
Copy link

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.