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

Handling escaped variables in region analysis #989

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

vesalvojdani
Copy link
Member

This is meant to address two issues we became aware of about escaped variables and the region analysis.

  • Simply handling pthread arguments and treating escaped variables as globals, so we handle regtest 09-34 without resorting to the empty region map override.
  • Dealing with escaped owners when a region member escaped. Would be nice if one could trigger an escape event for this, although it would be extremely imprecise because of the non-directional heap abstraction. The alternative would be to re-implement a region-specific escape analysis.
  • (Optional) Understand what region owners actually mean: probably one should use AddrOf(i) as owner in 9-34 when its not a pointer.

@sim642 sim642 self-requested a review July 16, 2024 11:44
@jerhard
Copy link
Member

jerhard commented Jul 16, 2024

Please add a test case for the cases that are fixed with this PR. Then we can consider merging this PR.
The following issues may be related to the behavior addressed here: #107 #1070 #1298 #1300.
Please check whether any of these is affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants