comparison src/share/vm/opto/reg_split.cpp @ 550:96964ebdb154

6782232: assert("CreateEx must be first instruction in block" ) Summary: Add the missing check for CreateEx. Add new notproduct flag VerifyRegisterAllocator. Reviewed-by: never
author kvn
date Wed, 07 Jan 2009 11:04:45 -0800
parents 4d9884b01ba6
children 91263420e1c6
comparison
equal deleted inserted replaced
510:1a767c61ad01 550:96964ebdb154
94 void PhaseChaitin::insert_proj( Block *b, uint i, Node *spill, uint maxlrg ) { 94 void PhaseChaitin::insert_proj( Block *b, uint i, Node *spill, uint maxlrg ) {
95 // Skip intervening ProjNodes. Do not insert between a ProjNode and 95 // Skip intervening ProjNodes. Do not insert between a ProjNode and
96 // its definer. 96 // its definer.
97 while( i < b->_nodes.size() && 97 while( i < b->_nodes.size() &&
98 (b->_nodes[i]->is_Proj() || 98 (b->_nodes[i]->is_Proj() ||
99 b->_nodes[i]->is_Phi() ) ) 99 b->_nodes[i]->is_Phi() ||
100 (b->_nodes[i]->is_Mach() &&
101 b->_nodes[i]->as_Mach()->ideal_Opcode() == Op_CreateEx)) )
100 i++; 102 i++;
101 103
102 // Do not insert between a call and his Catch 104 // Do not insert between a call and his Catch
103 if( b->_nodes[i]->is_Catch() ) { 105 if( b->_nodes[i]->is_Catch() ) {
104 // Put the instruction at the top of the fall-thru block. 106 // Put the instruction at the top of the fall-thru block.