Skip to content

Commit

Permalink
8235870: C2 crashes in IdealLoopTree::est_loop_flow_merge_sz()
Browse files Browse the repository at this point in the history
Reviewed-by: thartmann
  • Loading branch information
Patric Hedlin committed Jan 13, 2020
1 parent ea152dc commit 9549cd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/share/opto/loopnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 9549cd2

Please sign in to comment.