src/share/vm/opto/loopnode.hpp

changeset 9776
ce42ae95d4d6
parent 9739
bf9503046dd4
child 9806
758c07667682
child 9977
e649f2136368
equal deleted inserted replaced
9775:9b865b281711 9776:ce42ae95d4d6
277 // pattern matching on the graph 277 // pattern matching on the graph
278 PhiNode* iv_phi = phi(); 278 PhiNode* iv_phi = phi();
279 if (iv_phi == NULL) { 279 if (iv_phi == NULL) {
280 return NULL; 280 return NULL;
281 } 281 }
282 assert(iv_phi->is_Phi(), "should be PhiNode");
282 Node *ln = iv_phi->in(0); 283 Node *ln = iv_phi->in(0);
283 if (ln->is_CountedLoop() && ln->as_CountedLoop()->loopexit() == this) { 284 if (ln->is_CountedLoop() && ln->as_CountedLoop()->loopexit() == this) {
284 return (CountedLoopNode*)ln; 285 return (CountedLoopNode*)ln;
285 } 286 }
286 return NULL; 287 return NULL;

mercurial