mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
fix
This commit is contained in:
parent
10874224a6
commit
aec3078a26
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1876,7 +1876,7 @@ void Compile::process_for_post_loop_opts_igvn(PhaseIterGVN& igvn) {
|
||||
// at least to this point, even if no loop optimizations were done.
|
||||
PhaseIdealLoop::verify(igvn);
|
||||
|
||||
if (has_loops() || ((0 <= _loop_opts_cnt) && (_loop_opts_cnt < LoopOptsCount))) {
|
||||
if (_print_phase_loop_opts) {
|
||||
print_method(PHASE_AFTER_LOOP_OPTS, 2);
|
||||
}
|
||||
C->set_post_loop_opts_phase(); // no more loop opts allowed
|
||||
@ -2404,7 +2404,8 @@ void Compile::Optimize() {
|
||||
|
||||
if (failing()) return;
|
||||
|
||||
if (has_loops()) {
|
||||
_print_phase_loop_opts = has_loops();
|
||||
if (_print_phase_loop_opts) {
|
||||
print_method(PHASE_BEFORE_LOOP_OPTS, 2);
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -355,6 +355,7 @@ class Compile : public Phase {
|
||||
bool _print_assembly; // True if we should dump assembly code for this compilation
|
||||
bool _print_inlining; // True if we should print inlining for this compilation
|
||||
bool _print_intrinsics; // True if we should print intrinsics for this compilation
|
||||
bool _print_phase_loop_opts; // True if we should before and after print phase loop opts
|
||||
#ifndef PRODUCT
|
||||
uint _phase_counter; // Counter for the number of already printed phases
|
||||
uint _igv_idx; // Counter for IGV node identifiers
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user