8144487: PhaseIdealLoop::build_and_optimize() must restore major_progress flag if skip_loop_opts is true

Restore the major_progress flag before calling igvn.optimize().

Reviewed-by: kvn
This commit is contained in:
Tobias Hartmann 2015-12-21 11:34:58 +01:00
parent 60da2fdb6f
commit 0f67aad7af

View File

@ -2335,6 +2335,11 @@ void PhaseIdealLoop::build_and_optimize(bool do_split_ifs, bool skip_loop_opts)
#endif
if (skip_loop_opts) {
// restore major progress flag
for (int i = 0; i < old_progress; i++) {
C->set_major_progress();
}
// Cleanup any modified bits
_igvn.optimize();