8220211: Small update to Fix generation of VNNI vector code by allowing adjacent LoadS nodes to be isomorphic (JDK-8216580)
authorvdeshpande
Tue, 05 Mar 2019 21:26:14 -0800
changeset 54007 b23068def105
parent 54006 a421bdf22394
child 54008 8b341d6728fe
8220211: Small update to Fix generation of VNNI vector code by allowing adjacent LoadS nodes to be isomorphic (JDK-8216580) Reviewed-by: kvn
src/hotspot/share/opto/superword.cpp
--- a/src/hotspot/share/opto/superword.cpp	Tue Mar 05 19:54:33 2019 -0500
+++ b/src/hotspot/share/opto/superword.cpp	Tue Mar 05 21:26:14 2019 -0800
@@ -1241,8 +1241,8 @@
     // Therefore, if the control nodes for both are range checks, we accept them to be isomorphic.
     for (DUIterator_Fast imax, i = s1->fast_outs(imax); i < imax; i++) {
       Node* t1 = s1->fast_out(i);
-      for (DUIterator_Fast imax, i = s2->fast_outs(imax); i < imax; i++) {
-        Node* t2 = s2->fast_out(i);
+      for (DUIterator_Fast jmax, j = s2->fast_outs(jmax); j < jmax; j++) {
+        Node* t2 = s2->fast_out(j);
         if (VectorNode::is_muladds2i(t1) && VectorNode::is_muladds2i(t2)) {
           return true;
         }