Skip to content

JIT: Assertion failed '((tree->gtFlags & GTF_VAR_DEF) == 0) && (tree->GetLclNum() == lclNum) && tree->gtVNPair.BothDefined()' during 'VN based copy prop #84619

@jakobbotsch

Description

@jakobbotsch
// Generated by Fuzzlyn v1.5 on 2023-04-09 16:37:03
// Run on X64 Windows
// Seed: 6230188300048624105
// Reduced from 155.1 KiB to 0.2 KiB in 00:01:48
// Hits JIT assert in Release:
// Assertion failed '((tree->gtFlags & GTF_VAR_DEF) == 0) && (tree->GetLclNum() == lclNum) && tree->gtVNPair.BothDefined()' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'VN based copy prop' (IL size 25; hash 0xade6b36b; FullOpts)
// 
//     File: D:\a\_work\1\s\src\coreclr\jit\copyprop.cpp Line: 161
// 
public class Program
{
    public static sbyte s_27;
    public static void Main()
    {
        long vr1 = 0;
        for (int vr3 = 0; vr3 < -1; vr3++)
        {
            s_27 = (sbyte)(vr1 | vr1);
        }
    }
}

Looks introduced/exposed by #83956, cc @BruceForstall

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions