Skip to content

[release/11.0] Preserve ARM64 flags dependencies during indirection reordering - #136083

Merged
JulieLeeMSFT merged 2 commits into
dotnet:release/11.0from
EgorBo:backport-135575-release-11.0
Oct 19, 2026
Merged

JulieLeeMSFT merged 2 commits into
dotnet:release/11.0from
EgorBo:backport-135575-release-11.0

Conversation

@EgorBo

@EgorBo EgorBo commented Oct 19, 2026

Copy link
Copy Markdown
Member

Fixes Issue #135521

main PR #135575

Description

Backport of #135575 to release/11.0. Preserve implicit flags dependencies when reordering ARM64 stores and post-indexed addressing. The regression test is adapted to the release branch's existing merged runner.

Customer Impact

  • Customer reported
  • Found internally

ARM64 code can compute incorrect signed remainder results after an allocation. For example, k % 2 can return -1 for a non-negative odd value.

Regression

  • Yes
  • No

Not introduced in .NET 11. Wrong results are reported on .NET 10; the underlying instruction-ordering bug is also present in .NET 9.

Testing

Test is added.

Risk

Low. Only prevents reordering across implicit flags dependencies.

…eordering

Backport of dotnet#135575 to release/11.0. Adapt the regression test to the branch's existing merged runner.

(cherry picked from commit 929e677)
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 293a4931-e666-4c2c-bf85-571092949275
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Oct 19, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@EgorBo

EgorBo commented Oct 19, 2026

Copy link
Copy Markdown
Member Author

PTAL @JulieLeeMSFT (since you approved the original PR) @dotnet/jit-contrib

@EgorBo
EgorBo requested a review from JulieLeeMSFT October 19, 2026 12:35
@JulieLeeMSFT JulieLeeMSFT added this to the 11.0.0 milestone Oct 19, 2026
@JulieLeeMSFT JulieLeeMSFT added the Servicing-approved Approved for servicing release label Oct 19, 2026
@JulieLeeMSFT

Copy link
Copy Markdown
Member

/ba-g known issue.

@JulieLeeMSFT
JulieLeeMSFT merged commit d7007c1 into dotnet:release/11.0 Oct 19, 2026
109 of 111 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants