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:
parent
60da2fdb6f
commit
0f67aad7af
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user