hotspot/src/share/vm/opto/superword.cpp
changeset 961 7fb3b13d4205
parent 781 e1baa9c8f16f
child 2022 28ce8115a91d
--- a/hotspot/src/share/vm/opto/superword.cpp	Fri Jul 25 16:03:40 2008 -0700
+++ b/hotspot/src/share/vm/opto/superword.cpp	Mon Jul 28 17:12:52 2008 -0700
@@ -1196,8 +1196,10 @@
     Node *n = lp()->fast_out(i);
     if (in_bb(n) && (n->is_Phi() && n->bottom_type() == Type::MEMORY)) {
       Node* n_tail  = n->in(LoopNode::LoopBackControl);
-      _mem_slice_head.push(n);
-      _mem_slice_tail.push(n_tail);
+      if (n_tail != n->in(LoopNode::EntryControl)) {
+        _mem_slice_head.push(n);
+        _mem_slice_tail.push(n_tail);
+      }
     }
   }