1.1 --- a/src/share/vm/opto/macro.cpp Tue Jun 28 15:04:39 2011 -0700 1.2 +++ b/src/share/vm/opto/macro.cpp Tue Jun 28 15:24:29 2011 -0700 1.3 @@ -391,13 +391,9 @@ 1.4 } 1.5 } 1.6 // Check if an appropriate new value phi already exists. 1.7 - Node* new_phi = NULL; 1.8 - uint size = value_phis->size(); 1.9 - for (uint i=0; i < size; i++) { 1.10 - if ( mem->_idx == value_phis->index_at(i) ) { 1.11 - return value_phis->node_at(i); 1.12 - } 1.13 - } 1.14 + Node* new_phi = value_phis->find(mem->_idx); 1.15 + if (new_phi != NULL) 1.16 + return new_phi; 1.17 1.18 if (level <= 0) { 1.19 return NULL; // Give up: phi tree too deep