< prev index next >

src/hotspot/share/opto/memnode.cpp

Print this page
*** 3334,10 ***
--- 3334,11 ---
            set_req(MemBarNode::Precedent, load_node);
            phase->is_IterGVN()->_worklist.push(my_mem);
            my_mem = load_node;
          } else {
            assert(my_mem->unique_out() == this, "sanity");
+           assert(!trailing_load_store(), "load store node can't be eliminated");
            del_req(Precedent);
            phase->is_IterGVN()->_worklist.push(my_mem); // remove dead node later
            my_mem = nullptr;
          }
          progress = true;
< prev index next >