mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
6384206: Phis which are later unneeded are impairing our ability to inline based on static types
Reviewed-by: rasbold, jrose
This commit is contained in:
parent
eee15b163e
commit
4b1e242299
18 changed files with 1082 additions and 401 deletions
|
@ -2667,6 +2667,10 @@ void PhaseIdealLoop::reorg_offsets( IdealLoopTree *loop ) {
|
|||
// Fix this by adjusting to use the post-increment trip counter.
|
||||
Node *phi = cl->phi();
|
||||
if( !phi ) return; // Dead infinite loop
|
||||
|
||||
// Shape messed up, probably by iteration_split_impl
|
||||
if (phi->in(LoopNode::LoopBackControl) != cl->incr()) return;
|
||||
|
||||
bool progress = true;
|
||||
while (progress) {
|
||||
progress = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue