1.1 --- a/src/share/vm/opto/lcm.cpp Wed Apr 23 11:20:36 2008 -0700 1.2 +++ b/src/share/vm/opto/lcm.cpp Wed Apr 23 13:57:14 2008 -0700 1.3 @@ -629,6 +629,10 @@ 1.4 // of the phi to be scheduled first. The select() method breaks 1.5 // ties in scheduling by worklist order. 1.6 delay.push(m); 1.7 + } else if (m->is_Mach() && m->as_Mach()->ideal_Opcode() == Op_CreateEx) { 1.8 + // Force the CreateEx to the top of the list so it's processed 1.9 + // first and ends up at the start of the block. 1.10 + worklist.insert(0, m); 1.11 } else { 1.12 worklist.push(m); // Then on to worklist! 1.13 }