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

WIP: turn on specialization spoofing mechanism in the compiler #25639

Closed
wants to merge 3 commits into from

Conversation

jrevels
Copy link
Member

@jrevels jrevels commented Jan 19, 2018

Follow-up to #24852. Intends to close #24676.

The intention of this PR is to rewrite relevant parts of the compiler to respect the signature_for_specialization_heuristics CodeInfo field. I've started off with some very naive changes to abstract_call_method that are probably incorrect...

edgecycle = true
break
end
if infstate.linfo.specTypes == sig
Copy link
Member Author

Choose a reason for hiding this comment

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

Should checks against signatures be replaced in the same manner as checks against methods?

break
end
working_method = method_for_specialization_heuristics(infstate.src, infstate.linfo.def)
if checked_method === working_method
Copy link
Member Author

@jrevels jrevels Jan 19, 2018

Choose a reason for hiding this comment

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

Should all method checks (that are part of specialization heuristics) be replaced like this? In general, when should the "spoof" method be used vs. the "real" method?

@jrevels jrevels changed the title WIP: turn on method specialization spoofing mechanism in the compiler WIP: turn on specialization spoofing mechanism in the compiler Jan 19, 2018
@Keno
Copy link
Member

Keno commented Apr 15, 2018

@jrevels Maybe pull the rename of the CodeInfo field out of this patch and merge, so it doesn't conflict?

@jrevels
Copy link
Member Author

jrevels commented Apr 16, 2018

Closing because @vtjnash is going to recreate the work here in a different (hopefully more correct) PR

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.

Allow CodeInfo-emitting generated functions to somewhat spoof inference's work-limiting heuristics
2 participants