From 1ca93396d809fce932834ff32146fe09800de4df Mon Sep 17 00:00:00 2001 From: kvn Date: Fri, 26 Oct 2012 11:48:04 -0700 Subject: [PATCH] 8001635: assert(in_bb(n)) failed: must be Summary: Added missed check that Load node is in processed loop block. Reviewed-by: twisti --- src/share/vm/opto/superword.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/opto/superword.cpp b/src/share/vm/opto/superword.cpp index c21c1e3ab..f53c64837 100644 --- a/src/share/vm/opto/superword.cpp +++ b/src/share/vm/opto/superword.cpp @@ -1809,7 +1809,7 @@ void SuperWord::compute_vector_element_type() { const Type* vt = vtn; if (VectorNode::is_shift(in)) { Node* load = in->in(1); - if (load->is_Load() && (velt_type(load)->basic_type() == T_INT)) { + if (load->is_Load() && in_bb(load) && (velt_type(load)->basic_type() == T_INT)) { vt = velt_type(load); } else if (in->Opcode() != Op_LShiftI) { // Widen type to Int to avoid creation of right shift vector -- GitLab