Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

suo
Copy link
Member

@suo suo commented Jul 24, 2020

This is a cherry-pick of #41990 into release/1.6

Previously when analyzing a TupleConstruct, we ignored the aliasing
information of the inputs and simply marked all elements of the returned
tuple as wildcards. But since we can fully reason about the contents of
a tuple statically, we should be able to assign them aliasing
information.

This analysis was not only incomplete but produced incorrect results,
since if a is not a wildcard, a noalias wilcard. So if we looked at
tuple(a) and reported the aliasing info as tuple(wildcard), then
tuple[0] noalias a, which is...wrong.

Previously when analyzing a TupleConstruct, we ignored the aliasing
information of the inputs and simply marked all elements of the returned
tuple as wildcards. But since we can fully reason about the contents of
a tuple statically, we should be able to assign them aliasing
information.

This analysis was not only incomplete but produced incorrect results,
since if `a` is not a wildcard, `a noalias wilcard`. So if we looked at
`tuple(a)` and reported the aliasing info as `tuple(wildcard)`, then
`tuple[0] noalias a`, which is...wrong.
@suo suo requested a review from apaszke as a code owner July 24, 2020 07:19
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jul 24, 2020
@dr-ci
Copy link

dr-ci bot commented Jul 24, 2020

💊 CI failures summary and remediations

As of commit 2ed6993 (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 2/2 non-CircleCI failure(s)

1 failure confirmed as flaky and can be ignored:

  • pytorch_macos_10_13_py3_test

ci.pytorch.org: 2 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 4 times.

@malfet malfet merged commit 8aa878f into release/1.6 Jul 24, 2020
malfet added a commit that referenced this pull request Jul 24, 2020
@facebook-github-bot facebook-github-bot deleted the fix-tuple-analysis-hotfix branch January 27, 2021 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oncall: jit Add this issue/PR to JIT oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants