Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk16 Public archive

Commit 554e60c

Browse files
Wang HuangHe Xuejin
authored andcommitted
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
1 parent d529306 commit 554e60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/opto/vectorIntrinsics.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ bool LibraryCallKit::inline_vector_convert() {
14351435
} else if (num_elem_from > num_elem_to) {
14361436
// Since number elements from input is larger than output, simply reduce size of input (we are supposed to
14371437
// drop top elements anyway).
1438-
int num_elem_for_resize = MAX2(num_elem_to, Matcher::min_vector_size(elem_bt_to));
1438+
int num_elem_for_resize = MAX2(num_elem_to, Matcher::min_vector_size(elem_bt_from));
14391439

14401440
// It is possible that arch does not support this intermediate vector size
14411441
// TODO More complex logic required here to handle this corner case for the sizes.

0 commit comments

Comments
 (0)