Uh oh!
There was an error while loading. Please reload this page.
Fold obj.GetType to a constant - #87101
Conversation
ghost
commented
Jun 3, 2023
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsTypeTest()=>"test".GetType();Was: ; Method X:Test():System.Type:thissubrsp,40movrcx,0xD1FFAB1E ; 'test'call System.Object:GetType():System.Type:thisnopaddrsp,40ret; Total bytes of code: 25Now: ; Method X:Test():System.Type:thismovrax,0xD1FFAB1E ; RuntimeType frozen object representing 'System.String'ret; Total bytes of code: 11
|
Diffs are small: https://dev.azure.com/dnceng-public/public/_build/results?buildId=294970&view=ms.vss-build-web.run-extensions-tab due to new contexts (see missing contexts values). We already had this optimization (mostly, for value types) this just extends it a bit 🙂 (not sure I understand why so many likes on it 😆) PTAL @dotnet/jit-contrib |
ShreyasJejurkar
commented
Jun 5, 2023
I love to see this kind of improvement where the number of instructions is going down and down and down! 😅 Keep those coming...🫡🎉 |
Was:
Now: