Thanks to visit codestin.com
Credit goes to github.com

Skip to content

JIT: Avoid overriding argument register with 'jmp' epilog #114899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

jakobbotsch
Copy link
Member

Porting a change from #114861 with a few minor diffs

@Copilot Copilot AI review requested due to automatic review settings April 22, 2025 09:35
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 22, 2025
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 updates the JIT epilog logic to prevent overriding the argument register when a jmp operation is used, porting a change from PR #114861.

  • The condition in genFnEpilog now checks that compJmpOpUsed is false before proceeding.
  • This change ensures the "pop ecx" instruction is only executed when it’s safe to do so.

Copy link
Contributor

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

@jakobbotsch
Copy link
Member Author

PTAL @dotnet/jit-contrib

A few minor diffs in tests for CEE_JMP.

@jakobbotsch jakobbotsch requested a review from a team April 22, 2025 23:06
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.

2 participants