Skip to content

Conversation

@aviatesk
Copy link
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
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

4 participants