simplify aliasdb interface (#17453)
authorMichael Suo <suo@fb.com>
Mon, 25 Feb 2019 21:27:43 +0000 (13:27 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 25 Feb 2019 21:34:51 +0000 (13:34 -0800)
commit79a5a73a1e0925841e1481edea7af290a8caae4c
tree30d137a75d6b9818d938326c64599477f8678f80
parentb0b7541ca4ddfa2f5967e17dac01f5bf471b8566
simplify aliasdb interface (#17453)

Summary:
Stack:
&nbsp;&nbsp;&nbsp;&nbsp;:black_circle:&nbsp; **#17453 [jit] simplify aliasdb interface**&nbsp;&nbsp;[:yellow_heart:](https://our.intern.facebook.com/intern/diff/D14205209/)

The previous "getWrites" API relies on the user to do alias checking, which is confusing and inconsistent with the rest of the interface. So replace it with a higher-level call.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17453

Differential Revision: D14209942

Pulled By: suo

fbshipit-source-id: d4aff2af6062ab8465ee006fc6dc603296bcb7ab
torch/csrc/jit/passes/alias_analysis.cpp
torch/csrc/jit/passes/alias_analysis.h
torch/csrc/jit/passes/dead_code_elimination.cpp