Skip to content
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

Reference-to-View pass and comprehensive reference test suite #1485

Merged
merged 9 commits into from
Dec 21, 2023

Conversation

tbennun
Copy link
Collaborator

@tbennun tbennun commented Dec 20, 2023

Implements a reference-to-view pass (converting references to views if they are only set to one particular subset). Also improves the simplify pipeline in the presence of Reference data descriptors and adds multiple tests that use references.

Copy link
Collaborator

@phschaad phschaad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition, LGTM

# Check if any of the symbols is a scope symbol
entry = state.entry_node(node)
while entry is not None:
if fsyms & entry.new_symbols(sdfg, state, {}):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 124-129 are not hit by the tests, if it's easy to add one that causes these edge cases then it may be good to add one. Otherwise nevermind.

@tbennun tbennun added this pull request to the merge queue Dec 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 20, 2023
@tbennun tbennun added this pull request to the merge queue Dec 21, 2023
@tbennun tbennun removed this pull request from the merge queue due to a manual request Dec 21, 2023
@tbennun tbennun merged commit 509ee0f into master Dec 21, 2023
@tbennun tbennun deleted the ref-to-view branch December 21, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants