8269517: compiler/loopopts/TestPartialPeelingSinkNodes.java crashes with -XX:+VerifyGraphEdges

Reviewed-by: kvn, dlong
This commit is contained in:
Jie Fu 2021-06-29 11:18:23 +00:00
parent fc0fd96a5f
commit 7010dfdffa

View File

@ -4013,6 +4013,12 @@ void PhaseIdealLoop::build_and_optimize(LoopOptsMode mode) {
// all the code before the peeled area, so the verify pass will always
// complain about it.
}
// Check for bailout, and return
if (C->failing()) {
return;
}
// Do verify graph edges in any case
NOT_PRODUCT( C->verify_graph_edges(); );