8270886: Crash in PhaseIdealLoop::verify_strip_mined_scheduling

Reviewed-by: kvn, thartmann
This commit is contained in:
Roland Westrelin 2021-07-29 07:34:20 +00:00
parent a0504cff9f
commit 6afcf5f5a2
2 changed files with 171 additions and 4 deletions

View file

@ -2111,10 +2111,6 @@ void Compile::Optimize() {
if (failing()) return;
}
// Now that all inlining is over, cut edge from root to loop
// safepoints
remove_root_to_sfpts_edges(igvn);
// Remove the speculative part of types and clean up the graph from
// the extra CastPP nodes whose only purpose is to carry them. Do
// that early so that optimizations are not disrupted by the extra
@ -2151,6 +2147,10 @@ void Compile::Optimize() {
set_for_igvn(save_for_igvn);
}
// Now that all inlining is over and no PhaseRemoveUseless will run, cut edge from root to loop
// safepoints
remove_root_to_sfpts_edges(igvn);
// Perform escape analysis
if (_do_escape_analysis && ConnectionGraph::has_candidates(this)) {
if (has_loops()) {