Skip to content

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Aug 13, 2025

This reverts commit 5c17036.

Fixes #117938 regression

Despite having a large PerfScore improvements only 1 benchmark improved and 5 regressed.

@Copilot Copilot AI review requested due to automatic review settings August 13, 2025 23:13
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts a previous change that increased the cost of ARR_LENGTH nodes to match IND(ADD(..,CNS)) operations. The revert addresses a performance regression where despite PerfScore improvements, actual benchmark results showed more regressions than improvements.

Key Changes:

  • Reverts cost calculation for array metadata operations (ARR_LENGTH and MDARR_LOWER_BOUND)
  • Reduces costEx from IND_COST_EX + 1 back to IND_COST_EX - 1
  • Reduces costSz from 2 * 2 back to 2

@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 Aug 13, 2025
Copy link
Contributor

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

@EgorBo
Copy link
Member Author

EgorBo commented Aug 13, 2025

@dotnet/jit-contrib PTAL revert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Perf] Linux/x64: 5 Regressions on 7/14/2025 11:26:56 PM +00:00
2 participants