Repository navigation
JIT: mark pseudo return buffer temp as multi-reg return - #135594
Merged
Merged
Conversation
When a call returning via a return buffer is returned from a method whose own return type is a multi-reg struct (e.g. an HFA on arm64), the temp created by impFixupStructReturnType was not marked lvIsMultiRegRet, asserting in Lowering. Let it fall through to the multi-reg handling. Fixes dotnet#134052 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 5 pipeline(s). 11 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.
🟢 Approval recommended
The focused fix reuses established multi-register handling and includes targeted regression coverage.
0 open findings
What changed in this PR
Fixes JIT handling of pseudo return-buffer temporaries used as multi-register struct returns.
Changes:
- Allows pseudo return-buffer temps to receive multi-register return metadata.
- Adds regression coverage validating all HFA fields.
| File | Description |
|---|---|
src/coreclr/jit/importer.cpp |
Continues through existing multi-register handling. |
src/tests/JIT/Regression_ro_2/Runtime_134052.cs |
Covers return-buffer-to-HFA bit casting. |
🧠 Review effort: Balanced
This was referenced Oct 11, 2026
Member
Author
|
PTAL @dotnet/jit-contrib, simple bug-fix, no diffs |
adamperlin
approved these changes
Oct 12, 2026
adamperlin
left a comment
Contributor
There was a problem hiding this comment.
This looks reasonable to me!
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.
When a call returning via a return buffer is returned from a method whose own return type is a multi-reg struct (e.g. an HFA on arm64), the temp created by impFixupStructReturnType was not marked lvIsMultiRegRet, asserting in Lowering. Let it fall through to the multi-reg handling.
Fixes #134052
No diffs