Skip to content

Add test cases for EscapeAnalysis. #29276

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 1 commit into from
Jan 18, 2020
Merged

Add test cases for EscapeAnalysis. #29276

merged 1 commit into from
Jan 18, 2020

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Jan 17, 2020

[Tests that were accidentally dropped from the previous commit]

Tests for commit fbe38ce:
Fix EscapeAnalysis losing precision during merge.

Array storage was being stack promoted even though it escaped. This
happened because multiple locally allocated arrays were merged into
the same locally allocated array value box. For this to become a
problem, other bizarre merge events need to take place, such as a
value node being mapped with a content node. The series of events led
to a missing edge in the connection graph. One of the arrays was
mapped directly to a project_box instruction which had forgotten it's
relationship with the alloc_box.

rdar://58371330 app crashes (miscompile)~

@atrick
Copy link
Contributor Author

atrick commented Jan 17, 2020

@swift-ci test

@atrick atrick requested a review from eeckstein January 17, 2020 18:23
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 5b4490f5d664da72968cf01f9f364f71795e32b4

@atrick
Copy link
Contributor Author

atrick commented Jan 17, 2020

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 5b4490f5d664da72968cf01f9f364f71795e32b4

Tests for commit fbe38ce:
  Fix EscapeAnalysis losing precision during merge.

  Array storage was being stack promoted even though it escaped. This
  happened because multiple locally allocated arrays were merged into
  the same locally allocated array value box. For this to become a
  problem, other bizarre merge events need to take place, such as a
  value node being mapped with a content node. The series of events led
  to a missing edge in the connection graph. One of the arrays was
  mapped directly to a project_box instruction which had forgotten it's
  relationship with the alloc_box.

   <rdar://58371330> app crashes (miscompile)~
@atrick
Copy link
Contributor Author

atrick commented Jan 17, 2020

@swift-ci smoke test

@atrick
Copy link
Contributor Author

atrick commented Jan 18, 2020

@swift-ci smoke test linux

@atrick atrick merged commit 4d715e6 into swiftlang:master Jan 18, 2020
@atrick atrick deleted the test-stackpromote branch January 23, 2020 18:26
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