Skip to content

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.

2 participants