Mercurial > hg > truffle
comparison src/share/vm/opto/lcm.cpp @ 125:d942c7e64bd9
6601321: Assert(j == 1 || b->_nodes[j-1]->is_Phi(),"CreateEx must be first instruction in block")
Reviewed-by: kvn, rasbold, sgoldman, jrose
author | never |
---|---|
date | Wed, 23 Apr 2008 13:57:14 -0700 |
parents | ba764ed4b6f2 |
children | c436414a719e 37f87013dfd8 |
comparison
equal
deleted
inserted
replaced
124:b130b98db9cf | 125:d942c7e64bd9 |
---|---|
627 if (m->is_iteratively_computed()) { | 627 if (m->is_iteratively_computed()) { |
628 // Push induction variable increments last to allow other uses | 628 // Push induction variable increments last to allow other uses |
629 // of the phi to be scheduled first. The select() method breaks | 629 // of the phi to be scheduled first. The select() method breaks |
630 // ties in scheduling by worklist order. | 630 // ties in scheduling by worklist order. |
631 delay.push(m); | 631 delay.push(m); |
632 } else if (m->is_Mach() && m->as_Mach()->ideal_Opcode() == Op_CreateEx) { | |
633 // Force the CreateEx to the top of the list so it's processed | |
634 // first and ends up at the start of the block. | |
635 worklist.insert(0, m); | |
632 } else { | 636 } else { |
633 worklist.push(m); // Then on to worklist! | 637 worklist.push(m); // Then on to worklist! |
634 } | 638 } |
635 } | 639 } |
636 } | 640 } |