-
Notifications
You must be signed in to change notification settings - Fork 37
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
Type stability fix #230
Type stability fix #230
Conversation
function defines_strides(::Type{T}) where {T} | ||
if parent_type(T) <: T | ||
return false | ||
else | ||
return defines_strides(parent_type(T)) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should file a Julia issue on the branch no longer inferring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this seems like a pretty rough case to not specialize.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks similar to JuliaLang/julia#43368.
Codecov Report
@@ Coverage Diff @@
## master #230 +/- ##
=======================================
Coverage 88.06% 88.06%
=======================================
Files 11 11
Lines 1592 1592
=======================================
Hits 1402 1402
Misses 190 190
Continue to review full report at Codecov.
|
@chriselrod, does this need a review or are we waiting on upstream changes? |
Needs a review. I don't think we should wait for JuliaLang/julia#43368 to get fixed. |
Tests still fail, but at least the inference tests no longer do: