Skip to content

JIT: Assertion failed 'tree == stmt->GetRootNode()' #108406

@JulieLeeMSFT

Description

@JulieLeeMSFT

Failed in Fuzzlyn/20240929.1

- linux-arm64 checked

Repro:

using System;
using System.Numerics;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;

public class Program
{
    public static int s_17;
    public static void Main()
    {
        var vr2 = (uint)ArmBase.ReverseElementBits(0);
        var vr3 = (ushort)s_17;
        bool vr4 = Crc32.ComputeCrc32(vr2, vr3) >= 1;
        bool vr5 = vr4;
        vr4 ^= true;
        if (vr4)
        {
            bool vr6 = default(bool);
            vr4 = vr6;
        }
        else
        {
            vr4 = !vr4;
        }

        System.Console.WriteLine(vr4);
        System.Console.WriteLine(vr5);
    }
}

Distinct assertion error:

JIT assert failed:
Assertion failed 'tree == stmt->GetRootNode()' in 'Program:M0()' during 'VN-based dead store removal' (IL size 776; hash 0xaf50ff37; FullOpts)

    File: /__w/1/s/src/coreclr/jit/fgdiagnostic.cpp Line: 3597

Metadata

Metadata

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions