Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

Inspired by the suppression justification from dotnet/linker#2891.

Cc @vitek-karas @sbomer @tlakollo @eerhardt

Inspired by the suppression justification from dotnet/linker#2891.
Copy link
Member

@vitek-karas vitek-karas left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

I'm still terrible at thinking about trimming the right way - I think what the linker does today, not what it "Should do" in theory.

@MichalStrehovsky
Copy link
Member Author

I'm still terrible at thinking about trimming the right way - I think what the linker does today, not what it "Should do" in theory.

The more aggressive constant propagation in .NET 7 already puts the IL linker into these territories today. It doesn't kick in often, but when it does, statically used properties and methods get removed.

Copy link
Member

@sbomer sbomer left a comment

Choose a reason for hiding this comment

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

Thank you!

Co-authored-by: Eric Erhardt <[email protected]>
Co-authored-by: Sven Boemer <[email protected]>
@MichalStrehovsky
Copy link
Member Author

@adegeo is this okay to merge?

@IEvangelist IEvangelist merged commit 0cd2f84 into main Aug 3, 2022
@IEvangelist IEvangelist deleted the MichalStrehovsky-patch-1 branch August 3, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants