8224538: LoadBarrierNode::common_barrier must check address
Reviewed-by: thartmann, kvn
This commit is contained in:
parent
0bb2f86867
commit
25b1131e33
@ -1336,10 +1336,9 @@ static bool common_barriers(PhaseIdealLoop* phase, LoadBarrierNode* lb) {
|
|||||||
Node* other_ctrl = u->in(LoadBarrierNode::Control);
|
Node* other_ctrl = u->in(LoadBarrierNode::Control);
|
||||||
|
|
||||||
Node* lca = phase->dom_lca(this_ctrl, other_ctrl);
|
Node* lca = phase->dom_lca(this_ctrl, other_ctrl);
|
||||||
bool ok = true;
|
|
||||||
|
|
||||||
Node* proj1 = NULL;
|
Node* proj1 = NULL;
|
||||||
Node* proj2 = NULL;
|
Node* proj2 = NULL;
|
||||||
|
bool ok = (lb->in(LoadBarrierNode::Address) == u->in(LoadBarrierNode::Address));
|
||||||
|
|
||||||
while (this_ctrl != lca && ok) {
|
while (this_ctrl != lca && ok) {
|
||||||
if (this_ctrl->in(0) != NULL &&
|
if (this_ctrl->in(0) != NULL &&
|
||||||
|
Loading…
Reference in New Issue
Block a user