< prev index next >

src/hotspot/share/opto/memnode.cpp

Print this page
@@ -1133,11 +1133,11 @@
        // Now prove that we have a LoadQ matched to a StoreQ, for some Q.
        if (store_Opcode() != st->Opcode()) {
          return NULL;
        }
        // LoadVector/StoreVector needs additional check to ensure the types match.
-       if (store_Opcode() == Op_StoreVector) {
+       if (st->is_StoreVector()) {
          const TypeVect*  in_vt = st->as_StoreVector()->vect_type();
          const TypeVect* out_vt = as_LoadVector()->vect_type();
          if (in_vt != out_vt) {
            return NULL;
          }
< prev index next >