JIT: Delete unused functions#131124
Open
EgorBo wants to merge 2 commits into
Open
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d4822663-897d-47d5-8d36-6128ffa76703
|
Azure Pipelines: Successfully started running 6 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes a set of unused helper functions (and associated declarations / dead debug code) from CoreCLR JIT sources to reduce maintenance surface and keep headers/implementation lean.
Changes:
- Removed an unused debug-only heap verifier from
PriorityQueueand the leftover commented assertions. - Removed unused LSRA helpers (range-check helpers, traversal-order stubs, reg-mask helpers, and an interval reg check).
- Removed multiple unused
Compilerhelpers (debug dump utilities, early-prop/assertion helpers, loop-hoist per-method printing, node test-data transfer, and old standalone-JIT stubs), plus an unused RISC-V emitter helper and some lowering helpers.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/coreclr/jit/priorityqueue.h | Removes unused debug-only heap verification code and dead commented assertions. |
| src/coreclr/jit/lsra.h | Deletes unused LSRA helper methods and retail-build traversal-order stubs. |
| src/coreclr/jit/lower.h | Removes unused lowering helper wrappers for common addressing patterns. |
| src/coreclr/jit/emitriscv64.cpp | Removes an unused sign-extend helper template. |
| src/coreclr/jit/compiler.h | Removes declarations for multiple unused Compiler helpers across debug/flowgraph/opt/test infra. |
| src/coreclr/jit/compiler.cpp | Removes the corresponding unused Compiler method definitions and legacy standalone-JIT stubs. |
This was referenced Jul 21, 2026
Open
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Delete unused functions.