Skip to content

Commit 86a627a

Browse files
committed
Update broadcast.jl
move `@inbounds` outside the loop body. see #38086
1 parent ae247b4 commit 86a627a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/broadcast.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,14 +973,14 @@ end
973973
destc = dest.chunks
974974
cind = 1
975975
bc′ = preprocess(dest, bc)
976-
for P in Iterators.partition(eachindex(bc′), bitcache_size)
976+
@inbounds for P in Iterators.partition(eachindex(bc′), bitcache_size)
977977
ind = 1
978978
@simd for I in P
979-
@inbounds tmp[ind] = bc′[I]
979+
tmp[ind] = bc′[I]
980980
ind += 1
981981
end
982982
@simd for i in ind:bitcache_size
983-
@inbounds tmp[i] = false
983+
tmp[i] = false
984984
end
985985
dumpbitcache(destc, cind, tmp)
986986
cind += bitcache_chunks

0 commit comments

Comments
 (0)