Skip to content
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

recompute sparams during inference after widening a method signature #18428

Merged
merged 1 commit into from
Sep 9, 2016

Conversation

vtjnash
Copy link
Sponsor Member

@vtjnash vtjnash commented Sep 9, 2016

also avoid an expensive loop in the common case of the hotpath

fix #18399

@@ -1089,6 +1089,9 @@ static jl_cgval_t emit_getfield_knownidx(const jl_cgval_t &strct, unsigned idx,
fieldval.gcroot = strct.gcroot;
return fieldval;
}
else if (isa<UndefValue>(strct.V)) {
return jl_cgval_t();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 We might need to do this more consistently in other places too though.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or more callers need to look at strct.typ instead of exprtype (since exprtype can be wrong / meaningless in dead code)

also avoid an expensive loop in the common case of the hotpath

fix #18399
@vtjnash vtjnash merged commit 9d65572 into master Sep 9, 2016
@vtjnash vtjnash deleted the jn/18399 branch September 9, 2016 21:48
tkelman pushed a commit that referenced this pull request Sep 16, 2016
also avoid an expensive loop in the common case of the hotpath

fix #18399

(cherry picked from commit a188f95)
ref #18428
@tkelman tkelman added this to the 0.5.x milestone Sep 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault in hvcat
4 participants