Repository navigation
Remove dead code: compVSQuirkStackPaddingNeeded field - #121684
Merged
jakobbotsch merged 2 commits intoNov 17, 2025
Merged
Conversation
Co-authored-by: jakobbotsch <[email protected]>
Copilot
AI
changed the title
[WIP] Remove compVSQuirkStackPaddingNeeded field in JIT source code
Remove dead code: compVSQuirkStackPaddingNeeded field
Nov 16, 2025
jkotas
approved these changes
Nov 16, 2025
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
jakobbotsch
approved these changes
Nov 17, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes dead code related to the compVSQuirkStackPaddingNeeded field that was originally intended as a quirk for VS debug-launch scenarios but was never actually utilized. The field was always initialized to 0 and never assigned any other value, making the associated conditional code unreachable.
Key changes:
- Removed the unused
compVSQuirkStackPaddingNeededfield andVSQUIRK_STACK_PADmacro - Eliminated dead conditional block that could never execute
- Cleaned up initialization code that served no purpose
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/coreclr/jit/compiler.h | Removed field declaration and VSQUIRK_STACK_PAD macro from the Compiler class |
| src/coreclr/jit/codegencommon.cpp | Removed initialization of the field in the CodeGen constructor |
| src/coreclr/jit/lclvars.cpp | Removed the unreachable conditional block that adjusted stack offsets for the quirk |
jakobbotsch
deleted the
copilot/remove-compvsquirkstackpaddingneeded-field
branch
November 17, 2025 12:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
compVSQuirkStackPaddingNeededfield was always initialized to 0 and never assigned any other value, making its conditional check perpetually false and the associated code unreachable.Changes
VSQUIRK_STACK_PADmacroThe field was originally intended as a quirk for VS debug-launch scenarios but was never actually used.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.