Mercurial > hg > truffle
comparison src/share/vm/opto/superword.cpp @ 3850:6987871cfb9b
7077439: Possible reference through NULL in loopPredicate.cpp:726
Summary: Use cl->is_valid_counted_loop() check.
Reviewed-by: never
author | kvn |
---|---|
date | Wed, 10 Aug 2011 14:06:57 -0700 |
parents | c7b60b601eb4 |
children | dc682d9431f3 |
comparison
equal
deleted
inserted
replaced
3849:f1c12354c3f7 | 3850: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(); |