src/share/vm/opto/node.cpp

changeset 9952
19056c781208
parent 9912
97d09139b360
child 9957
d2ec2776ad0c
     1.1 --- a/src/share/vm/opto/node.cpp	Mon Mar 30 17:55:01 2020 +0200
     1.2 +++ b/src/share/vm/opto/node.cpp	Tue Jan 28 13:36:30 2020 +0100
     1.3 @@ -937,6 +937,17 @@
     1.4      return (Node*) this;
     1.5  }
     1.6  
     1.7 +// Find out of current node that matches opcode.
     1.8 +Node* Node::find_out_with(int opcode) {
     1.9 +  for (DUIterator_Fast imax, i = fast_outs(imax); i < imax; i++) {
    1.10 +    Node* use = fast_out(i);
    1.11 +    if (use->Opcode() == opcode) {
    1.12 +      return use;
    1.13 +    }
    1.14 +  }
    1.15 +  return NULL;
    1.16 +}
    1.17 +
    1.18  //---------------------------uncast_helper-------------------------------------
    1.19  Node* Node::uncast_helper(const Node* p) {
    1.20  #ifdef ASSERT

mercurial