JIT: Remove VNFOA_SharedStatic, ValueNumStore::IsSharedStatic, and shared-static column from valuenumfuncs.h#126796
JIT: Remove VNFOA_SharedStatic, ValueNumStore::IsSharedStatic, and shared-static column from valuenumfuncs.h#126796
Conversation
…static column from valuenumfuncs.h Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/e3e4eb92-f590-4ca6-b837-014040cf3e03 Co-authored-by: EgorBo <523221+EgorBo@users.noreply.github.com>
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
There was a problem hiding this comment.
Pull request overview
This PR removes an unused “shared-static” value-numbering function attribute from the CoreCLR JIT value numbering infrastructure, simplifying the VN function metadata and related tables.
Changes:
- Removes
VNFOA_SharedStatic/ related shift + asserts and dropsValueNumStore::IsSharedStatic. - Updates
ValueNumFuncDefmacro shape andGetOpAttribsForFuncto no longer carry the shared-static boolean. - Updates
valuenumfuncs.hentries (including HW intrinsic expansions) to remove the final boolean column.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/coreclr/jit/valuenumfuncs.h | Drops the shared-static column from all ValueNumFuncDef entries and updates the header comment accordingly. |
| src/coreclr/jit/valuenum.h | Removes the shared-static op-attrib bit and the IsSharedStatic API, and updates the ValueNumFuncDef macro signature. |
| src/coreclr/jit/valuenum.cpp | Removes IsSharedStatic implementation and updates op-attrib generation/validation/name macros for the new ValueNumFuncDef shape. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR removes an unused “shared static” value-numbering attribute and all associated plumbing in the CoreCLR JIT value numbering subsystem, simplifying the VN function metadata macros and attribute encoding.
Changes:
- Removed
VNFOA_SharedStatic(and shift/static_assert) and the unusedValueNumStore::IsSharedStatic(ValueNum)API. - Simplified VN function attribute computation by dropping the
sharedStaticparameter fromGetOpAttribsForFuncandValueNumFuncDefmacro usage. - Updated
valuenumfuncs.hto remove the “is-shared-static” column from allValueNumFuncDefentries (including HW intrinsic expansions and RISC-V entries) and adjusted the header comment accordingly.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/coreclr/jit/valuenumfuncs.h | Removes the shared-static boolean column from ValueNumFuncDef entries and updates the header comment. |
| src/coreclr/jit/valuenum.h | Drops the VNFOA_SharedStatic flag/shift/assert, removes IsSharedStatic declaration, and updates ValueNumFuncDef macro signature. |
| src/coreclr/jit/valuenum.cpp | Removes IsSharedStatic implementation and threads the reduced ValueNumFuncDef/GetOpAttribsForFunc signatures through attribute tables and debug helpers. |
|
@copilot please fix formatting errors: |
Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/c715ec4c-6c6b-4ef8-8d3c-b304cc2f41a7 Co-authored-by: EgorBo <523221+EgorBo@users.noreply.github.com>
... Fixed in 95c733b — collapsed |
There was a problem hiding this comment.
Pull request overview
This PR simplifies JIT value-numbering metadata by removing the unused “shared static” attribute plumbing from VN function definitions and associated tables, reducing table width and related helper APIs.
Changes:
- Remove
VNFOA_SharedStatic(enum value, shift, andstatic_assert) and drop theValueNumStore::IsSharedStaticAPI. - Update
GetOpAttribsForFuncand allValueNumFuncDefmacro definitions/usages to remove thesharedStaticparameter. - Update
valuenumfuncs.hto remove the shared-static column from all entries and adjust related comments/formatting.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/coreclr/jit/valuenumfuncs.h | Drops the shared-static column from all ValueNumFuncDef entries and updates the header comment accordingly. |
| src/coreclr/jit/valuenum.h | Removes VNFOA_SharedStatic, its shift/assert, and the IsSharedStatic declaration; updates ValueNumFuncDef macro signature. |
| src/coreclr/jit/valuenum.cpp | Removes IsSharedStatic implementation; updates GetOpAttribsForFunc signature and all ValueNumFuncDef table/macro uses. |
VNFOA_SharedStaticenum value, shift constant, and static_assert fromvaluenum.hIsSharedStatic(ValueNum vn)declaration and implementationsharedStaticparameter fromGetOpAttribsForFuncand allValueNumFuncDefmacrosvaluenumfuncs.hGetOpAttribsForFuncsignature to single line, collapseValueNumFuncDeftable-init macro to single line, fix trailing whitespace in validation macro, wrap long comment invaluenumfuncs.h