[vector] Crash in VectorIntrinsics.broadcastInt(int) intrinsic during compilation.

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Thu Nov 1 22:51:37 UTC 2018


Trivial fix, but I'm curious why the tests haven't caught it earlier.

diff --git a/src/hotspot/share/opto/library_call.cpp 
b/src/hotspot/share/opto/library_call.cpp
--- a/src/hotspot/share/opto/library_call.cpp
+++ b/src/hotspot/share/opto/library_call.cpp
@@ -7449,7 +7449,7 @@
        Node* nmask = _gvn.transform(ConNode::make(TypeInt::make(mask)));
        maskedcnt = _gvn.transform(new AndINode(cnt, nmask));
      }
-    return VectorNode::shift_count(shift_op, maskedcnt, num_elem, bt);
+    return _gvn.transform(VectorNode::shift_count(shift_op, maskedcnt, 
num_elem, bt));
    }
  }

Best regards,
Vladimir Ivanov


More information about the panama-dev mailing list