You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
; Assembly listing for method Program:<<Main>$>g__Test|0_0(IObj):System.Object (Tier1)subrsp,40movrax,0xD1FFAB1E ; ObjImpl`1[System.String]cmp qword ptr [rcx],raxjne SHORT G_M33634_IG06call[ObjImpl`1[System.__Canon]:GetObj():System.Object:this]G_M33634_IG04:nopaddrsp,40retG_M33634_IG06:movr11,0xD1FFAB1E ; code for IObj:GetObj():System.Object:thiscall[r11]IObj:GetObj():System.Object:thisjmp SHORT G_M33634_IG04; Total bytes of code 46,
GDV is applied but the method is not inlined, presumably, the root cause is the same as in #87597 - generic context from the GDV candidate is not kept (but I am not sure, decided to file since I noticed a similiar pattern in real code)
Activity
ghost added
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Activity
EgorBo commentedon Jul 22, 2023
Just checked, this issue will be closed by #87847
codegen diff (Main vs that PR): https://www.diffchecker.com/iyxpsemY/ (method is inlined now)
cc @davidwrighton @AndyAyersMS