8253923: C2 doesn't always run loop opts for compilations that include loops

Reviewed-by: neliasso, thartmann
This commit is contained in:
Roland Westrelin 2020-10-12 10:55:22 +00:00
parent dfe8ba6099
commit a6c23b7753
9 changed files with 79 additions and 6 deletions

View file

@ -922,7 +922,7 @@ void Compile::Init(int aliaslevel) {
_fixed_slots = 0;
set_has_split_ifs(false);
set_has_loops(has_method() && method()->has_loops()); // first approximation
set_has_loops(false); // first approximation
set_has_stringbuilder(false);
set_has_boxed_value(false);
_trap_can_recompile = false; // no traps emitted yet
@ -1022,6 +1022,7 @@ void Compile::Init(int aliaslevel) {
#ifdef ASSERT
_type_verify_symmetry = true;
_phase_optimize_finished = false;
_exception_backedge = false;
#endif
}