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

Fri, 16 Mar 2018 15:48:15 +0100

author
roland
date
Fri, 16 Mar 2018 15:48:15 +0100
changeset 9181
e54bf58b34b3
parent 9180
ca717cbbd8b1
child 9182
0f31f18d2241

8188223: IfNode::range_check_trap_proj() should handler dying subgraph with single if proj
Reviewed-by: kvn

src/share/vm/opto/ifnode.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/opto/ifnode.cpp	Wed Apr 04 17:16:05 2018 -0700
     1.2 +++ b/src/share/vm/opto/ifnode.cpp	Fri Mar 16 15:48:15 2018 +0100
     1.3 @@ -453,6 +453,9 @@
     1.4  // offset.  Return 2 if we had to negate the test.  Index is NULL if the check
     1.5  // is versus a constant.
     1.6  int IfNode::is_range_check(Node* &range, Node* &index, jint &offset) {
     1.7 +  if (outcnt() != 2) {
     1.8 +    return 0;
     1.9 +  }
    1.10    Node* b = in(1);
    1.11    if (b == NULL || !b->is_Bool())  return 0;
    1.12    BoolNode* bn = b->as_Bool();

mercurial