src/share/vm/opto/superword.cpp

changeset 3048
6987871cfb9b
parent 3040
c7b60b601eb4
child 3748
dc682d9431f3
equal deleted inserted replaced
3047:f1c12354c3f7 3048:6987871cfb9b
67 67
68 //------------------------------transform_loop--------------------------- 68 //------------------------------transform_loop---------------------------
69 void SuperWord::transform_loop(IdealLoopTree* lpt) { 69 void SuperWord::transform_loop(IdealLoopTree* lpt) {
70 assert(lpt->_head->is_CountedLoop(), "must be"); 70 assert(lpt->_head->is_CountedLoop(), "must be");
71 CountedLoopNode *cl = lpt->_head->as_CountedLoop(); 71 CountedLoopNode *cl = lpt->_head->as_CountedLoop();
72
73 if (!cl->is_valid_counted_loop()) return; // skip malformed counted loop
72 74
73 if (!cl->is_main_loop() ) return; // skip normal, pre, and post loops 75 if (!cl->is_main_loop() ) return; // skip normal, pre, and post loops
74 76
75 // Check for no control flow in body (other than exit) 77 // Check for no control flow in body (other than exit)
76 Node *cl_exit = cl->loopexit(); 78 Node *cl_exit = cl->loopexit();

mercurial