Skip to content
Permalink
Browse files

8235870: C2 crashes in IdealLoopTree::est_loop_flow_merge_sz()

Reviewed-by: thartmann
  • Loading branch information
Patric Hedlin
Patric Hedlin committed Jan 13, 2020
1 parent ea152dc commit 9549cd28779934f3f4846a82031f7afa17edde0d
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/hotspot/share/opto/loopnode.cpp
@@ -2505,13 +2505,14 @@ uint IdealLoopTree::est_loop_flow_merge_sz() const {

for (uint k = 0; k < outcnt; k++) {
Node* out = node->raw_out(k);

if (out == NULL) continue;
if (out->is_CFG()) {
if (!is_member(_phase->get_loop(out))) {
ctrl_edge_out_cnt++;
}
} else {
} else if (_phase->has_ctrl(out)) {
Node* ctrl = _phase->get_ctrl(out);
assert(ctrl != NULL, "must be");
assert(ctrl->is_CFG(), "must be");
if (!is_member(_phase->get_loop(ctrl))) {
data_edge_out_cnt++;

0 comments on commit 9549cd2

Please sign in to comment.