Process rep nodes when collapsing an SCC - #1873
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1873 +/- ##
=======================================
Coverage 65.82% 65.82%
=======================================
Files 251 251
Lines 24665 24668 +3
Branches 4661 4662 +1
=======================================
+ Hits 16235 16238 +3
Misses 8430 8430
🚀 New features to boost your workflow:
|
Collaborator
Author
|
Interestingly this solves a real problem but the stack-1.bc stuff we were looking at before has some other problems too it turns out. Investigating still (that is probably the access-from-0-offset vs. access-from-base you mentioned but I want to confirm it). |
Collaborator
|
This is an issue orthogonal to the gep offset. Shall I merge this one first? |
Collaborator
Author
|
Yes, it should be good to merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When collapsing any cycle, we need to potentially handle stores/loads (postProcessNode) and copies/geps (processNode) if the points-to set has changed or if the rep node gets new edges. I originally thought not so for the latter but SCC detection can happen before all nodes in the SCC get the same points-to set.
Adding to worklist/reanalyzing conditionally upon those two conditions requires a lot of refactoring I believe. I've instead added the rep node unconditionally whenever an SCC is collapsed.