Skip to content

Conversation

@EgorBo
Copy link
Member

@EgorBo EgorBo commented Nov 19, 2025

Fixes #121723

Copilot AI review requested due to automatic review settings November 19, 2025 08:33
@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 Nov 19, 2025
@EgorBo
Copy link
Member Author

EgorBo commented Nov 19, 2025

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dotnet-policy-service
Copy link
Contributor

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

Copilot finished reviewing on behalf of EgorBo November 19, 2025 08:35
Copy link
Contributor

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 fixes issue #121723 by clearing the contained flag in the sign test optimization for ARM64. The optimization removes unnecessary casts to TYP_BYTE or TYP_SHORT when comparing values against zero in the JIT's lowering phase.

Key changes:

  • Added castOp->ClearContained() call to properly mark the cast operand as non-contained after unwrapping the cast
  • Updated API usage from direct field access to the CastToType() accessor method

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@AILearning1

This comment was marked as off-topic.

@EgorBo
Copy link
Member Author

EgorBo commented Nov 19, 2025

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@EgorBo
Copy link
Member Author

EgorBo commented Nov 19, 2025

/ba-g outerloop failures are #121699

@EgorBo EgorBo merged commit 198a3bd into dotnet:main Nov 19, 2025
157 of 164 checks passed
@EgorBo EgorBo deleted the clear-containment-flag-arm branch November 19, 2025 11:39
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.

Assertion failed '!op1->isUsedFromMemory()' : JIT/Performance/CodeQuality/Bytemark/Bytemark/Bytemark.cmd

3 participants