Skip to content

Number of jit tests failing with needLabel assert #61939

Closed

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

Activity

  1. ghost added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on Nov 22, 2021
  2. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Nov 22, 2021
  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Nov 22, 2021
  4. added this to the 7.0.0 milestone on Nov 22, 2021
  5. kunalspathak commented on Nov 28, 2021

    @kunalspathak
    Contributor

    This is mostly causing because we sometimes can have back to back jumps as part of same IG. We might have an align instruction after the first jmp and then expect the next instruction (in this case a jmp) has its own label. #62025 will fix this and some other loop alignment related issues.

           E97AFFFFFF           jmp      G_M22669_IG12
           E9A0060000           jmp      G_M22669_IG78
  6. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Nov 28, 2021
  7. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Dec 1, 2021
  8. ghost locked as resolved and limited conversation to collaborators on Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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