6843752: missing code for an anti-dependent Phi in GCM

Don't place a load below anti-dependent PHI.

Reviewed-by: never, twisti
This commit is contained in:
Vladimir Kozlov 2009-05-27 12:35:51 -07:00
parent fdb3ca8708
commit 802f3552f9
2 changed files with 122 additions and 0 deletions

View file

@ -617,6 +617,9 @@ Block* PhaseCFG::insert_anti_dependences(Block* LCA, Node* load, bool verify) {
assert(!LCA_orig->dominates(pred_block) ||
early->dominates(pred_block), "early is high enough");
must_raise_LCA = true;
} else {
// anti-dependent upon PHI pinned below 'early', no edge needed
LCA = early; // but can not schedule below 'early'
}
}
}