Skip to content

Commit 1cceb24

Browse files
committed
Review comments resolution
1 parent d18bd2a commit 1cceb24

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/hotspot/share/opto/compile.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,11 @@ void Compile::shuffle_late_inlines() {
21612161
shuffle_array(*C, _late_inlines);
21622162
}
21632163

2164-
void Compile::transfer_vector_late_inlines() {
2164+
void Compile::process_vector_late_inlines() {
2165+
if (live_nodes() > (uint)LiveNodeCountInliningCutoff) {
2166+
_vector_late_inlines.clear();
2167+
return;
2168+
}
21652169
for (int i = 0; i < _vector_late_inlines.length(); i++) {
21662170
CallGenerator* cg = _vector_late_inlines.at(i);
21672171
// When a vector intrinsic fails, set_generator(cg) caches the
@@ -2237,8 +2241,8 @@ void Compile::inline_incrementally(PhaseIterGVN& igvn) {
22372241

22382242
if (failing()) return;
22392243

2240-
if (_late_inlines.length() == 0 && _vector_late_inlines.length() > 0) {
2241-
transfer_vector_late_inlines();
2244+
if (_late_inlines.length() == 0) {
2245+
process_vector_late_inlines();
22422246
}
22432247
}
22442248

src/hotspot/share/opto/compile.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ class Compile : public Phase {
513513
void add_vector_late_inline(CallGenerator* cg) {
514514
_vector_late_inlines.push(cg);
515515
}
516-
void transfer_vector_late_inlines();
516+
void process_vector_late_inlines();
517517

518518
void* barrier_set_state() const { return _barrier_set_state; }
519519

0 commit comments

Comments
 (0)