dotnet / dotnet/runtime

Duplicate jmp-s in code gen

Open
#121,487 6 comments 0 reactions 0 assignees View on GitHub
area-CodeGen-coreclr
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

I measure an method (see attachment) with .Net 10.0.0-rc.1.25451.107, 10.0.25.45207 and BenchmarkDotNet 0.15.6
and assembler code looks weird:
.NET 10.0.0 (10.0.0-rc.1.25451.107, 10.0.25.45207), X64 RyuJIT x86-64-v3
```assembly
...
M02_L02:
mov eax,r10d
jmp short M02_L00
M02_L03:
mov eax,r10d
jmp short M02_L00
M02_L04:
mov eax,r10d
jmp short M02_L00
...
```

[Surrogates.zip](https://github.com/user-attachments/files/23451530/Surrogates.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.