mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6890673: Eliminate allocations immediately after EA
Try to eliminate allocations and related locks immediately after escape analysis. Reviewed-by: never
This commit is contained in:
parent
81c085a1e2
commit
8d2ee23293
11 changed files with 148 additions and 71 deletions
|
@ -1711,11 +1711,22 @@ void Compile::Optimize() {
|
|||
|
||||
if (failing()) return;
|
||||
|
||||
// Optimize out fields loads from scalar replaceable allocations.
|
||||
igvn.optimize();
|
||||
print_method("Iter GVN after EA", 2);
|
||||
|
||||
if (failing()) return;
|
||||
|
||||
if (congraph() != NULL && macro_count() > 0) {
|
||||
PhaseMacroExpand mexp(igvn);
|
||||
mexp.eliminate_macro_nodes();
|
||||
igvn.set_delay_transform(false);
|
||||
|
||||
igvn.optimize();
|
||||
print_method("Iter GVN after eliminating allocations and locks", 2);
|
||||
|
||||
if (failing()) return;
|
||||
}
|
||||
}
|
||||
|
||||
// Loop transforms on the ideal graph. Range Check Elimination,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue