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

Backport mark loop rewrite #26

Closed
wants to merge 1 commit into from

Conversation

d-netto
Copy link
Member

@d-netto d-netto commented Aug 6, 2023

Backport of an early version of the mark-loop rewrite.

This PR has a known regression that was addressed on later JuliaLang PRs, so it shouldn't be used for performance analysis.

Opening it so that we have an additional checkpoint while we backport the multithreaded GC.

X-ref: JuliaLang#47292.

@d-netto d-netto force-pushed the dcn/backport-mark-loop-rewrite branch from 60d6cdb to fd2061a Compare August 7, 2023 00:08
@d-netto d-netto requested a review from kpamnany August 7, 2023 20:28
kpamnany pushed a commit that referenced this pull request Aug 9, 2023
It's possible for PiNodes to effectively imply statically the condition
of a Core.ifelse. For example:
```julia
    23 ─ %60  = Core.ifelse(%47, false, true)::Bool
    │    %61  = Core.ifelse(%47, %58, false)::Union{Missing, Bool}
    25 ─        goto #27 if not %60
    26 ─ %65  = π (%61, Bool)
    └───        ...
```

In basic block #26, the PiNode gives us enough information to conclude
that `%47 === false` if control flow reaches that point. The previous
code incorrectly assumed that this kind of pruning would only be done
for PhiNodes.

Resolves JuliaLang#50276
@d-netto d-netto force-pushed the dcn/backport-mark-loop-rewrite branch from fd2061a to 0961e15 Compare August 27, 2023 17:28
@d-netto d-netto force-pushed the dcn/backport-mark-loop-rewrite branch from 0961e15 to 0e8de9e Compare August 27, 2023 19:32
@d-netto d-netto closed this Sep 6, 2023
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.

1 participant