SIMD not enabled when iterating over two Arrays with equal sizes #29571
Labels
compiler:optimizer
Optimization passes (mostly in base/compiler/ssair/)
compiler:simd
instruction-level vectorization
performance
Must go faster
At #29458 I noticed that SIMD is not enabled when iterating over two
Array
objects (e.g.Vector{Int}
) with the same size. Here are two examples similar tocopyto!
:In the case of
g
, SIMD is used if adding@inbounds
to both indexing operations. In the case off
it doesn't make any difference.It seems to me that it should be possible to enable SIMD at least when both arguments use 1-based indices.
The text was updated successfully, but these errors were encountered: