< prev index next >
src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp
Print this page
@@ -1334,14 +1334,13 @@
if (u != lb && u->is_LoadBarrier() && u->as_LoadBarrier()->has_true_uses()) {
Node* this_ctrl = lb->in(LoadBarrierNode::Control);
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 &&
this_ctrl->in(0)->is_MultiBranch()) {
if (this_ctrl->in(0)->in(0) == lca) {
< prev index next >