8220211: Small update to Fix generation of VNNI vector code by allowing adjacent LoadS nodes to be isomorphic (JDK-8216580)
Reviewed-by: kvn
--- 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;
}