mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
4809552: Optimize Arrays.fill(...)
Reviewed-by: kvn
This commit is contained in:
parent
519c627fe5
commit
08d9e03b81
17 changed files with 940 additions and 11 deletions
|
@ -1673,6 +1673,12 @@ void PhaseIdealLoop::build_and_optimize(bool do_split_ifs, bool do_loop_pred) {
|
|||
_ltree_root->_child->loop_predication(this);
|
||||
}
|
||||
|
||||
if (OptimizeFill && UseLoopPredicate && C->has_loops() && !C->major_progress()) {
|
||||
if (do_intrinsify_fill()) {
|
||||
C->set_major_progress();
|
||||
}
|
||||
}
|
||||
|
||||
// Perform iteration-splitting on inner loops. Split iterations to avoid
|
||||
// range checks or one-shot null checks.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue