Repository navigation
JIT: Add GT_STORE_LCL_VARS to define multiple scalar locals from a single source - #137358
jakobbotsch wants to merge 6 commits into
Conversation
…single source Introduce `GT_STORE_LCL_VARS` with record-backed destinations and integrate it with logical local definitions, liveness, SSA, value numbering, register allocation, and code generation. Use the node for physically promoted struct stores. Lower compatible call returns directly into destination locals, spilling other sources through a struct temporary. Add promotion and code generation tests. Co-authored-by: Copilot <[email protected]> Copilot-Session: e5380c17-dca4-4a54-b4bb-16ad9560f1e9
|
Azure Pipelines: Successfully started running 7 pipeline(s). 8 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Co-authored-by: Copilot <[email protected]> Copilot-Session: 871f033a-5ea0-415f-b66b-023b998f8e3d
Co-authored-by: Copilot <[email protected]> Copilot-Session: 871f033a-5ea0-415f-b66b-023b998f8e3d
Co-authored-by: Copilot <[email protected]> Copilot-Session: 823d72b5-b0b5-4b68-8d11-c642eb4bd586
|
/azp run runtime-coreclr jitstress, runtime-coreclr libraries-jitstress |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
AndyAyersMS
left a comment
There was a problem hiding this comment.
Looks good overall.
We should look carefully at uses of OperIsLocal* , eg Wasm probably should have some assert in its allocator that it will not see a GT_STORE_LCL_VARS. Note wasm does have multiple-value returns but we don't use them (yet).
Another place this comes up is LIR side effect analysis, seems like we should need some changes in sideeffects.cpp?
| { | ||
| def.RegNum = REG_NA; | ||
| } | ||
| if (i + 1 < store->gtCount) |
There was a problem hiding this comment.
This probably deserves a comment
There was a problem hiding this comment.
I moved existing comments on our model of multi-reg stores to the remarks of this function, and updated the source places to point to this place instead.
…squashed # Conflicts: # src/coreclr/jit/compiler.hpp
Introduce
GT_STORE_LCL_VARSwith record-backed destinations and integrate it with logical local definitions, liveness, SSA, value numbering, register allocation, and code generation.Use the node for physically promoted struct stores. Lower compatible call returns directly into destination locals, spilling other sources through a struct temporary. Add promotion and code generation tests.