8224538: LoadBarrierNode::common_barrier must check address

Reviewed-by: thartmann, kvn
This commit is contained in:
Nils Eliasson 2019-05-31 10:13:24 +02:00
parent 0bb2f86867
commit 25b1131e33

View File

@ -1336,10 +1336,9 @@ static bool common_barriers(PhaseIdealLoop* phase, LoadBarrierNode* lb) {
Node* other_ctrl = u->in(LoadBarrierNode::Control);
Node* lca = phase->dom_lca(this_ctrl, other_ctrl);
bool ok = true;
Node* proj1 = NULL;
Node* proj2 = NULL;
bool ok = (lb->in(LoadBarrierNode::Address) == u->in(LoadBarrierNode::Address));
while (this_ctrl != lca && ok) {
if (this_ctrl->in(0) != NULL &&