Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

Optimizes typeof(Foo) == typeof(Bar) for both sides. This is necessary to get System.Double MethodTable from hello world again.

I tried to write a test for this but I wasn't able to come up with something in 10 minutes so I gave up. It seems to require interactions of several things to actually trigger the size bloat without this extra optimization. But this does fix the Double case. Saves 20 kB on Hello World (that we regressed due to some HW intrinsics stuff).

Cc @dotnet/ilc-contrib

Optimizes `typeof(Foo) == typeof(Bar)` for both sides. This is necessary to get `System.Double` MethodTable from hello world again.

I tried to write a test for this but I wasn't able to come up with something in 10 minutes so I gave up. It seems to require interactions of several things to actually trigger the size bloat without this extra optimization. But this does fix the `Double` case.
@ghost
Copy link

ghost commented Jun 8, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Optimizes typeof(Foo) == typeof(Bar) for both sides. This is necessary to get System.Double MethodTable from hello world again.

I tried to write a test for this but I wasn't able to come up with something in 10 minutes so I gave up. It seems to require interactions of several things to actually trigger the size bloat without this extra optimization. But this does fix the Double case. Saves 20 kB on Hello World (that we regressed due to some HW intrinsics stuff).

Cc @dotnet/ilc-contrib

Author: MichalStrehovsky
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

@jkotas
Copy link
Member

jkotas commented Jun 8, 2023

#87242 should fix the FreeBSD build break

@MichalStrehovsky MichalStrehovsky merged commit 7c00b17 into dotnet:main Jun 8, 2023
@MichalStrehovsky MichalStrehovsky deleted the typeof branch June 8, 2023 06:19
@ghost ghost locked as resolved and limited conversation to collaborators Jul 8, 2023
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