KEMBAR78
[jit] fix bug in alias analysis by suo · Pull Request #18146 · pytorch/pytorch · GitHub
Skip to content

Conversation

@suo
Copy link
Member

@suo suo commented Mar 18, 2019

Stack from ghstack:

We handled hasWriters() incorrectly in the case of wildcards. There's
even a comment describing the correct behavior. Sad!

Much thanks to @t-vi for tracking this down and suggesting the fix!

Differential Revision: D14524208

We handled hasWriters() incorrectly in the case of wildcards. There's
even a comment describing the correct behavior. Sad!
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Mar 18, 2019
@t-vi
Copy link
Collaborator

t-vi commented Mar 18, 2019

Should we have an amended test/test_jit.py for this, too?

@suo
Copy link
Member Author

suo commented Mar 18, 2019

I prefer using the cpp tests because they allow us to directly verify the behavior of AliasDB (which the frontend shouldn't "know" about). I can make a regression test that confirms that patterns like the one you observed get correctly CSE'd though.

@t-vi
Copy link
Collaborator

t-vi commented Mar 19, 2019

@pytorchbot merge this please

@pytorchbot pytorchbot added the merge-this-please Was marked for merge with @pytorchbot merge this please label Mar 19, 2019
@suo suo deleted the gh/suo/9/head branch March 19, 2019 19:07
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 794c631.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-this-please Was marked for merge with @pytorchbot merge this please oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants