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 improve frule inference #202

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

WIP improve frule inference #202

wants to merge 4 commits into from

Conversation

aviatesk
Copy link
Member

src/stage2/interpreter.jl Outdated Show resolved Hide resolved
aviatesk added a commit to JuliaLang/julia that referenced this pull request Jul 31, 2023
Currently, the code that updates `bestguess` using `ReturnNode`
information includes hardcodes that relate to `Conditional` and
`LimitedAccuracy`. These behaviors are actually lattice-dependent and
therefore should be overloadable by `AbstractInterpreter`.

Additionally, particularly in Diffractor, a clever strategy is required
to update return types in a way that it takes into account information
from both the original method and its rule method
(xref: JuliaDiff/Diffractor.jl#202). This also requires such an overload
to exist.
In response to these needs, this commit introduces an implementation of
a hook named `update_bestguess!`.
@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Patch coverage: 69.23% and project coverage change: -0.06% ⚠️

Comparison is base (9b2a506) 55.01% compared to head (2438a47) 54.96%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #202      +/-   ##
==========================================
- Coverage   55.01%   54.96%   -0.06%     
==========================================
  Files          28       28              
  Lines        2790     2800      +10     
==========================================
+ Hits         1535     1539       +4     
- Misses       1255     1261       +6     
Files Changed Coverage Δ
src/stage2/interpreter.jl 22.17% <69.23%> (+1.79%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

aviatesk added a commit to JuliaLang/julia that referenced this pull request Aug 1, 2023
Currently, the code that updates `bestguess` using `ReturnNode`
information includes hardcodes that relate to `Conditional` and
`LimitedAccuracy`. These behaviors are actually lattice-dependent and
therefore should be overloadable by `AbstractInterpreter`.

Additionally, particularly in Diffractor, a clever strategy is required
to update return types in a way that it takes into account information
from both the original method and its rule method
(xref: JuliaDiff/Diffractor.jl#202). This also requires such an overload
to exist.
In response to these needs, this commit introduces an implementation of
a hook named `update_bestguess!`.
aviatesk added a commit to JuliaLang/julia that referenced this pull request Aug 1, 2023
…50744)

Currently, the code that updates `bestguess` using `ReturnNode`
information includes hardcodes that relate to `Conditional` and
`LimitedAccuracy`. These behaviors are actually lattice-dependent and
therefore should be overloadable by `AbstractInterpreter`.

Additionally, particularly in Diffractor, a clever strategy is required
to update return types in a way that it takes into account information
from both the original method and its rule method
(xref: JuliaDiff/Diffractor.jl#202). This also requires such an overload
to exist.
In response to these needs, this commit introduces an implementation of
a hook named `update_bestguess!`.
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.

2 participants