8266962: Add arch supporting check for "Op_VectorLoadConst" before creating the node

Reviewed-by: vlivanov, neliasso
This commit is contained in:
Xiaohong Gong 2021-05-19 07:49:41 +00:00 committed by Ningsheng Jian
parent 4954383168
commit 2563a6a9b5

View File

@ -352,6 +352,9 @@ bool LibraryCallKit::inline_vector_shuffle_iota() {
if (!arch_supports_vector(Op_AndV, num_elem, elem_bt, VecMaskNotUsed)) {
return false;
}
if (!arch_supports_vector(Op_VectorLoadConst, num_elem, elem_bt, VecMaskNotUsed)) {
return false;
}
if (!arch_supports_vector(Op_VectorBlend, num_elem, elem_bt, VecMaskUseLoad)) {
return false;
}