Skip to content

Assertion failed '!compDonotInline()' during 'Morph - Inlining' #64787

@kunalspathak

Description

@kunalspathak
// Found by Antigen

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class TestClass
{
    static int s_int_8 = -1;
    int int_24 = -1;
    public int LeafMethod6()
    {
        unchecked
        {
            return 15-4>> (int_24 = int_24)/ (int_24 = s_int_8)+ 15*4<< 15+4^ 15&4^ 15^15%4|15+4;
        }
    }
    public void Method0()
    {
        unchecked
        {
            int int_848 = -2;
            for (; int_848 < (15%4| (s_int_8 *= s_int_8)<< (int_848 ^= int_848 -= LeafMethod6())^ 15<<4^ (s_int_8 &= 15>>4)); int_848++)
{}            return;
        }
    }
    public static void Main(string[] args)
    {
        new TestClass().Method0();
    }
}
/*
Got output diff:
--------- Baseline ---------  

Environment:



--------- Test ---------  

Environment:

set COMPlus_TieredCompilation=0
set COMPlus_JitMaxLocalsToTrack=0x10
set COMPlus_JitDoRangeAnalysis=1
set COMPlus_JitAggressiveInlining=1
set COMPlus_EnableHWIntrinsic=0
set COMPlus_AltJitName=clrjit_unix_x64_x64.dll
set COMPlus_AltJit=TryGetValue

Assert failure(PID 138376 [0x00021c88], Thread: 180624 [0x2c190]): Assertion failed '!compDonotInline()' in 'System.Collections.Generic.Dictionary`2[__Canon,__Canon][System.__Canon,System.__Canon]:TryGetValue(System.__Canon,byref):bool:this' during 'Morph - Inlining' (IL size 39)
    File: D:\git\dotnet-runtime\src\coreclr\jit\importer.cpp Line: 8815
    Image: d:\git\dotnet-runtime\artifacts\tests\coreclr\windows.x64.Checked\tests\Core_Root\CoreRun.exe
*/

Metadata

Metadata

Assignees

Labels

arch-x64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIos-linuxLinux OS (any supported distro)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions