# HG changeset patch # User never # Date 1208984234 25200 # Node ID d942c7e64bd91a7f60e9e807c9fc2150e111d901 # Parent b130b98db9cfed04e220ba16d597662957703593 6601321: Assert(j == 1 || b->_nodes[j-1]->is_Phi(),"CreateEx must be first instruction in block") Reviewed-by: kvn, rasbold, sgoldman, jrose diff -r b130b98db9cf -r d942c7e64bd9 src/share/vm/opto/lcm.cpp --- a/src/share/vm/opto/lcm.cpp Wed Apr 23 11:20:36 2008 -0700 +++ b/src/share/vm/opto/lcm.cpp Wed Apr 23 13:57:14 2008 -0700 @@ -629,6 +629,10 @@ // of the phi to be scheduled first. The select() method breaks // ties in scheduling by worklist order. delay.push(m); + } else if (m->is_Mach() && m->as_Mach()->ideal_Opcode() == Op_CreateEx) { + // Force the CreateEx to the top of the list so it's processed + // first and ends up at the start of the block. + worklist.insert(0, m); } else { worklist.push(m); // Then on to worklist! }