mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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
1 changed files with 5 additions and 0 deletions
|
@ -2335,6 +2335,11 @@ void PhaseIdealLoop::build_and_optimize(bool do_split_ifs, bool skip_loop_opts)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (skip_loop_opts) {
|
if (skip_loop_opts) {
|
||||||
|
// restore major progress flag
|
||||||
|
for (int i = 0; i < old_progress; i++) {
|
||||||
|
C->set_major_progress();
|
||||||
|
}
|
||||||
|
|
||||||
// Cleanup any modified bits
|
// Cleanup any modified bits
|
||||||
_igvn.optimize();
|
_igvn.optimize();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue