Skip to content

Improve deabstraction SSA promotion logic, fixing SR-8395 #18400

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

Merged
merged 2 commits into from
Jul 31, 2018

Conversation

lattner
Copy link
Contributor

@lattner lattner commented Jul 31, 2018

Improve deabstraction SSA promotion logic, fixing SR-8395

  • Handle the simple case of storing into a struct, to handle the common
    pattern of a store through a struct_element_addr into a Tensor.
  • Fix handling of begin_access to be a separate loop. Before, we were
    adding new entries to the use list that we're iterating over. This
    was almost fine (no invalid iterators or anything) but the entries
    are added to the start of the list so we wouldn't see them.
  • Fix a bug this exposed in graph lowering where we wouldn't handle
    aggregate wrappers around elements in a Tensor initializer.

lattner added 2 commits July 31, 2018 09:51
 - Handle the simple case of storing into a struct, to handle the common
   pattern of a store through a struct_element_addr into a Tensor.
 - Fix handling of begin_access to be a separate loop.  Before, we were
   adding new entries to the use list that we're iterating over.  This
   was almost fine (no invalid iterators or anything) but the entries
   are added to the start of the list so we wouldn't see them.
 - Fix a bug this exposed in graph lowering where we wouldn't handle
   aggregate wrappers around elements in a Tensor initializer.
@lattner lattner added the tensorflow This is for "tensorflow" branch PRs. label Jul 31, 2018
@lattner
Copy link
Contributor Author

lattner commented Jul 31, 2018

@swift-ci please test tensorflow

1 similar comment
@lattner
Copy link
Contributor Author

lattner commented Jul 31, 2018

@swift-ci please test tensorflow

@lattner lattner merged commit 44c18b2 into tensorflow Jul 31, 2018
@lattner lattner deleted the deabstraction-ssa-promotion2 branch July 31, 2018 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant