Skip to content

Adding instance tracking to the DCE #1340

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 10 commits into from
Oct 24, 2024
Merged

Conversation

grantnelson-wf
Copy link
Collaborator

@grantnelson-wf grantnelson-wf commented Aug 23, 2024

This extends dead-code elimination (DCE) to handle type arguments for instantiations of generic types. Since this change reworked how the DCE works, I added a README.md that discusses the idea and direction for these changes whilst giving help to any future extensions of the DCE.

The CI should continue to pass and I added a lot of new tests in the DCE package. We should probably at some point add some integration tests in the compiler package to ensure that the correct information is being given to the DCE, but because of how large that could be, I did not do that in this PR.

This is related to #1013 and #1270

@grantnelson-wf grantnelson-wf force-pushed the dce4Instances branch 3 times, most recently from 0aa1d2f to c478887 Compare September 19, 2024 21:46
@grantnelson-wf grantnelson-wf marked this pull request as ready for review September 20, 2024 20:04
@grantnelson-wf grantnelson-wf changed the title Instance tracking for DCE Adding instance tracking to the DCE Sep 20, 2024
@grantnelson-wf grantnelson-wf marked this pull request as draft September 26, 2024 17:37
@grantnelson-wf grantnelson-wf marked this pull request as ready for review September 27, 2024 16:23
@grantnelson-wf grantnelson-wf requested a review from flimzy October 17, 2024 18:05
Copy link
Member

@flimzy flimzy left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just some stylistic suggestions, that I'm happy to ignore and merge. Just LMK.

@flimzy flimzy enabled auto-merge October 24, 2024 15:30
@flimzy flimzy merged commit 8a27348 into gopherjs:master Oct 24, 2024
10 checks passed
@grantnelson-wf grantnelson-wf deleted the dce4Instances branch October 24, 2024 15:41
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