-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bounds checking in dot #650
Comments
I'm not sure this is an actual problem in practice? The type inferred code looks a bit mysterious here, but the native code looks good:
Note that in #603 @tkoolen changed The origin of the function foo(r)
s = zero(eltype(r))
@inbounds @simd for i in r
s += i
end
s
end
@code_warntype foo(1:4) |
We don't do DCE elimination on typed IR. The line |
The dot product of two static arrays has a bounds check in the inner loop as
produces
This seems surely wrong to me, but the dot function uses
@inbounds
correctly and as far as I can tell, all the needed@propagate_inbounds
are in place! What on earth is going wrong?For reference, I'm on julia v1.1.1 and StaticArrays v0.11.0.
The text was updated successfully, but these errors were encountered: