8258989: JVM is failed to inline in jdk.internal.vm.vector.VectorSupport::convert

Co-authored-by: He Xuejin <hexuejin2@huawei.com>
Reviewed-by: vlivanov, thartmann
This commit is contained in:
Wang Huang 2021-01-06 01:49:15 +00:00 committed by Fei Yang
parent d529306722
commit 554e60c400

@ -1435,7 +1435,7 @@ bool LibraryCallKit::inline_vector_convert() {
} else if (num_elem_from > num_elem_to) {
// Since number elements from input is larger than output, simply reduce size of input (we are supposed to
// drop top elements anyway).
int num_elem_for_resize = MAX2(num_elem_to, Matcher::min_vector_size(elem_bt_to));
int num_elem_for_resize = MAX2(num_elem_to, Matcher::min_vector_size(elem_bt_from));
// It is possible that arch does not support this intermediate vector size
// TODO More complex logic required here to handle this corner case for the sizes.