File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1672,8 +1672,7 @@ bool LibraryCallKit::inline_vector_convert() {
1672
1672
if (num_elem_from < num_elem_to) {
1673
1673
// Since input and output number of elements are not consistent, we need to make sure we
1674
1674
// properly size. Thus, first make a cast that retains the number of elements from source.
1675
- // In case the size exceeds the arch size, we do the minimum.
1676
- int num_elem_for_cast = MIN2 (num_elem_from, Matcher::max_vector_size (elem_bt_to));
1675
+ int num_elem_for_cast = num_elem_from;
1677
1676
1678
1677
// It is possible that arch does not support this intermediate vector size
1679
1678
// TODO More complex logic required here to handle this corner case for the sizes.
@@ -1692,7 +1691,7 @@ bool LibraryCallKit::inline_vector_convert() {
1692
1691
} else if (num_elem_from > num_elem_to) {
1693
1692
// Since number elements from input is larger than output, simply reduce size of input (we are supposed to
1694
1693
// drop top elements anyway).
1695
- int num_elem_for_resize = MAX2 ( num_elem_to, Matcher::min_vector_size (elem_bt_from)) ;
1694
+ int num_elem_for_resize = num_elem_to;
1696
1695
1697
1696
// It is possible that arch does not support this intermediate vector size
1698
1697
// TODO More complex logic required here to handle this corner case for the sizes.
You can’t perform that action at this time.
0 commit comments