Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

@MichalStrehovsky MichalStrehovsky commented Mar 3, 2022

This pull request pretty much became a rollback of dotnet/runtimelab#658 with a regression test to make sure if dotnet/runtimelab#658 is reintroduced, we do it properly.

When we were in the situation of the newly added test, we would try to generate method body on the abstract class. Such method body is not actually reachable.

Saves 500 bytes on a hello world. Fixes a compiler assert (that might be more serious sometimes).

When we were in the situation of the newly added test, we would try to generate method body on the abstract class. Such method body is not actually reachable.

Saves ~500 bytes on a hello world. Fixes a compiler assert (that might be more serious sometimes).
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks

Turns out this optimization is a bit more complicated. Adding a test case for when it didn't do the right thing, in case we want to come back to it later.
@MichalStrehovsky
Copy link
Member Author

This pull request pretty much became a rollback of dotnet/runtimelab#658 with a regression test to make sure if dotnet/runtimelab#658 is reintroduced, we do it properly.

@MichalStrehovsky MichalStrehovsky merged commit b0d1e89 into dotnet:main Mar 7, 2022
@MichalStrehovsky MichalStrehovsky deleted the dependencyanl branch March 7, 2022 16:49
@ghost ghost locked as resolved and limited conversation to collaborators Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants