Skip to content

Number of jit tests failing with needLabel assert #61939

Closed
@AndyAyersMS

Description

@AndyAyersMS

Saw this first when testing OSR but it seems to be more widespread.

Eg from libraries-pgo run: https://dev.azure.com/dnceng/public/_build/results?buildId=1480057&view=ms.vss-test-web.build-test-results-tab

  Starting:    System.Text.RegularExpressions.Tests (parallel test collections = on, max threads = 4)

Assert failure(PID 27 [0x0000001b], Thread: 33 [0x0021]): Assertion failed 'needLabel' in '<>c__DisplayClass207_0:<TryGenerateSimplifiedGo>g__EmitSingleCharAtomicLoop|22(System.Text.RegularExpressions.RegexNode):this' during 'Generate code' (IL size 1706)

    File: /__w/1/s/src/coreclr/jit/codegenlinear.cpp Line: 348
    Image: /root/helix/work/correlation/dotnet

Underlying issue is that we end up deciding to put align padding before an unreachable block, and then assert that that block does not have a label.

cc @kunalspathak @dotnet/jit-contrib

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