8231291: C2: loop opts before EA should maximally unroll loops

Reviewed-by: kvn, vlivanov
This commit is contained in:
Roland Westrelin 2019-12-20 17:17:37 +01:00
parent 1745ae28b9
commit 1af059d4cb
4 changed files with 74 additions and 13 deletions

View file

@ -2292,7 +2292,7 @@ void Compile::Optimize() {
if (has_loops()) {
// Cleanup graph (remove dead nodes).
TracePhase tp("idealLoop", &timers[_t_idealLoop]);
PhaseIdealLoop::optimize(igvn, LoopOptsNone);
PhaseIdealLoop::optimize(igvn, LoopOptsMaxUnroll);
if (major_progress()) print_method(PHASE_PHASEIDEAL_BEFORE_EA, 2);
if (failing()) return;
}