8188223: IfNode::range_check_trap_proj() should handler dying subgraph with single if proj

Reviewed-by: kvn
This commit is contained in:
Roland Westrelin 2017-10-18 16:06:39 +02:00
parent bbd0fa6b1a
commit 50c759f20e

View File

@ -477,6 +477,9 @@ static Node* split_if(IfNode *iff, PhaseIterGVN *igvn) {
// if this IfNode follows a range check pattern return the projection
// for the failed path
ProjNode* IfNode::range_check_trap_proj(int& flip_test, Node*& l, Node*& r) {
if (outcnt() != 2) {
return NULL;
}
Node* b = in(1);
if (b == NULL || !b->is_Bool()) return NULL;
BoolNode* bn = b->as_Bool();