Skip to content

Conversation

@davidwrighton
Copy link
Member

  • Add some logic to have a minor difference between debug and non-debug codegen

Fixes JIT/Directed/debugging/debuginfo/tester

…ebug data stream

- Add a some logic to have a minor difference between debug and non-debug codegen
Copilot AI review requested due to automatic review settings December 10, 2025 18:48
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 10, 2025
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 a bug in the CoreCLR interpreter where load/store peephole optimizations were incorrectly removing sequence points from the debug data stream. The fix disables these optimizations when compiling with debug code enabled.

  • Adds a check to disable store/load peephole optimization in debug builds to preserve sequence points
  • The fix is minimal and targeted to the specific peephole optimization that was causing the issue

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@am11 am11 added area-CodeGen-Interpreter-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Dec 10, 2025
@dotnet-policy-service
Copy link
Contributor

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

@davidwrighton davidwrighton merged commit d4f6b56 into dotnet:main Dec 10, 2025
109 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants