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

Add precompiled tags if backedge is missing #15

Merged
merged 1 commit into from
May 3, 2023
Merged

Conversation

timholy
Copy link
Sponsor Member

@timholy timholy commented May 3, 2023

In JuliaLang/julia#49617 it was found that
not all callees have backedges to callers. There is some speculation
that rather than adding the backedge to those cases, we may in fact
be able to prune the backedge graph more substantially in cases where
it may be safe to avoid propagating invalidation.

Consequently, to enforce the guarantees made by @compile_workload,
PrecompileTools should check the inference graph and add tags in cases
where a backedge is missing.

In JuliaLang/julia#49617 it was found that
not all callees have backedges to callers. There is some speculation
that rather than adding the backedge to those cases, we may in fact
be able to prune the backedge graph more substantially in cases where
it may be safe to avoid propagating invalidation.

Consequently, to enforce the guarantees made by `@compile_workload`,
PrecompileTools should check the inference graph and add tags in cases
where a backedge is missing.
@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #15 (d527a47) into main (7b80794) will increase coverage by 1.28%.
The diff coverage is 90.00%.

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   87.17%   88.46%   +1.28%     
==========================================
  Files           1        1              
  Lines          39       52      +13     
==========================================
+ Hits           34       46      +12     
- Misses          5        6       +1     
Impacted Files Coverage Δ
src/PrecompileTools.jl 88.46% <90.00%> (ø)

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.

None yet

1 participant