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

Minimal fix for change in CostCallInfo #137

Merged
merged 2 commits into from
Mar 12, 2021
Merged

Minimal fix for change in CostCallInfo #137

merged 2 commits into from
Mar 12, 2021

Conversation

Keno
Copy link
Member

@Keno Keno commented Mar 12, 2021

This is just the general fix to try and get tests to pass again and Cthulhu somewhat working, I don't think it's optimal, but it's also not clear to me how to tell from the new design of ConstCallInfo, what to do if the result is nothing, i.e. what choices to present to the user there, so we may have to take another look at how this info is computed in Base. @aviatesk could you think about what needs to be done here?

@Keno
Copy link
Member Author

Keno commented Mar 12, 2021

Merging this so people won't have a broken Cthulhu experience, but we should revisit this since I don't think it's quite correct.

@Keno Keno merged commit 7089ff0 into master Mar 12, 2021
@timholy timholy deleted the kf/fixconst branch March 13, 2021 18:15
@aviatesk
Copy link
Member

@aviatesk could you think about what needs to be done here?

Yeah I will look into this tmrw.

aviatesk added a commit to aviatesk/Cthulhu.jl that referenced this pull request Mar 14, 2021
… callsites

I think this is the proper update to 
JuliaLang/julia#39305.
We can use `ConstPropCallInfo` only for the successful constant-prop'ed
result and just keep using the usual `MICallInfo` for successful one,
because each of `ConstCallInfo.results` should correspond to each 
callsite
obtained from 
`ConstCallInfo.call::Union{MethodMatchInfo,UnionSplitInfo}`.

Basic tests are also added.
@aviatesk
Copy link
Member

#139

aviatesk added a commit that referenced this pull request Apr 2, 2021
follow up #137, remove duplicated non-constant callsites
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.

3 participants