-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JIT: Clean up some call multi-reg ret handling #99679
JIT: Clean up some call multi-reg ret handling #99679
Conversation
- Switch some `IsMultiRegReturnedType` calls to use `GenTreeCall::HasMultiRegRetVal`. - Remove `Compiler*` parameter of `TreatAsShouldHaveRetBufArg`; the function it was using on `Compiler` is static
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
src/coreclr/jit/fginline.cpp
Outdated
@@ -405,55 +395,23 @@ class SubstitutePlaceholdersAndDevirtualizeWalker : public GenTreeVisitor<Substi | |||
// candidates. | |||
// | |||
// Do the deferred work now. | |||
if (retClsHnd != NO_CLASS_HANDLE) | |||
if ((*use)->IsCall() && (*use)->AsCall()->HasMultiRegRetVal()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this not cause diffs on platforms with multi-reg LONG
returns?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 32 bit builds certainly look unhappy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was causing us to call lvaSetStruct(..., nullptr, ...)
and hit an assert. Added a varTypeIsStruct
check back here now.
/azp run runtime-coreclr jitstress, runtime-coreclr libraries-jitstress |
Azure Pipelines successfully started running 2 pipeline(s). |
Ping @EgorBo |
IsMultiRegReturnedType
calls to useGenTreeCall::HasMultiRegRetVal
.Compiler*
parameter ofTreatAsShouldHaveRetBufArg
; the function it was using onCompiler
is static