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 @@ -1747,8 +1747,7 @@ bool LibraryCallKit::inline_vector_convert() {
1747
1747
if (num_elem_from < num_elem_to) {
1748
1748
// Since input and output number of elements are not consistent, we need to make sure we
1749
1749
// properly size. Thus, first make a cast that retains the number of elements from source.
1750
- // In case the size exceeds the arch size, we do the minimum.
1751
- int num_elem_for_cast = MIN2 (num_elem_from, Matcher::max_vector_size (elem_bt_to));
1750
+ int num_elem_for_cast = num_elem_from;
1752
1751
1753
1752
// It is possible that arch does not support this intermediate vector size
1754
1753
// TODO More complex logic required here to handle this corner case for the sizes.
@@ -1767,7 +1766,7 @@ bool LibraryCallKit::inline_vector_convert() {
1767
1766
} else if (num_elem_from > num_elem_to) {
1768
1767
// Since number elements from input is larger than output, simply reduce size of input (we are supposed to
1769
1768
// drop top elements anyway).
1770
- int num_elem_for_resize = MAX2 ( num_elem_to, Matcher::min_vector_size (elem_bt_from)) ;
1769
+ int num_elem_for_resize = num_elem_to;
1771
1770
1772
1771
// It is possible that arch does not support this intermediate vector size
1773
1772
// 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