Skip to content

Commit 6efb112

Browse files
committed
fix simd performance
1 parent 33ab8e7 commit 6efb112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/multidimensional.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ module IteratorsMD
431431
simd_inner_length(iter::CartesianIndices, I::CartesianIndex) = Base.length(iter.indices[1])
432432

433433
simd_index(iter::CartesianIndices{0}, ::CartesianIndex, I1::Int) = first(iter)
434-
@inline function simd_index(iter::CartesianIndices, Ilast::CartesianIndex, I1::Int)
434+
@propagate_inbounds function simd_index(iter::CartesianIndices, Ilast::CartesianIndex, I1::Int)
435435
CartesianIndex(getindex(iter.indices[1], I1+first(Base.axes1(iter.indices[1]))), Ilast.I...)
436436
end
437437

0 commit comments

Comments
 (0)