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

inference: improve ssa_def_slot tracking #45524

Merged
merged 1 commit into from
Jun 2, 2022
Merged

inference: improve ssa_def_slot tracking #45524

merged 1 commit into from
Jun 2, 2022

Conversation

aviatesk
Copy link
Sponsor Member

This change allows us to propagate conditional information through
this kind of pattern (see #45499):

%init = [...]
        [...]
        SlotNumber(x) = %init
        [...]
        goto if not isa(%init, T)

If SlotNumber(x) is only assigned by %init between the definition of
%init and the goto usage, we can impose a conditional constraint on
SlotNumber(x).


@nanosoldier runbenchmarks("inference", vs=":master")
fix #45499.

@aviatesk aviatesk requested a review from vtjnash May 31, 2022 04:08
@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - no performance regressions were detected. A full report can be found here.

This change allows us to propagate conditional information through
this kind of pattern (see #45499):
```
%init = [...]
        [...]
        SlotNumber(x) = %init
        [...]
        goto if not isa(%init, T)
```

If `SlotNumber(x)` is only assigned by `%init` between the definition of
`%init` and the `goto` usage, we can impose a conditional constraint on
`SlotNumber(x)`.
@aviatesk aviatesk merged commit 5ffdc5c into master Jun 2, 2022
@aviatesk aviatesk deleted the avi/45499 branch June 2, 2022 00:25
Copy link
Sponsor Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

lgtm

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.

Propagate type information to assigned variables from slots in lowered form
3 participants