Skip to content
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

Remove an unnecessary check from fgMakeOutgoingStructArgCopy. #35701

Merged
merged 1 commit into from
May 1, 2020

Conversation

erozenfeld
Copy link
Member

The old-style helper tail calls required the jit to copy implicit by-ref
args. After #341 we are using old-style helper tail calls only for x86,
which doesn't have implicit by-ref parameters. So the check is no longer
necessary.

This is a no-diffs cleanup change.

The old-style helper tail calls required the jit to copy implicit by-ref
args. After dotnet#341 we are using old-style helper tail calls only for x86,
which doesn't have implicit by-ref parameters. So the check is no longer
necessary.

This is a no-diffs cleanup change.
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label May 1, 2020
@erozenfeld
Copy link
Member Author

@dotnet/jit-contrib @AndyAyersMS PTAL

@AndyAyersMS
Copy link
Member

We might see some diffs in tests, though perhaps we don't have coverage for this case. Would need win x64, explicit tail calls that require helpers, and pass through implicit by ref structs. Maybe the code from #2191?

@erozenfeld
Copy link
Member Author

No, we won't see diffs from this change. IsTailCallViaJitHelper can only return true on x86. We could see the diffs you are thinking about from #341. This change is purely cleanup.

@AndyAyersMS
Copy link
Member

Ah, right, I had forgotten we refined this predicate to just cover the x86 helper case.

@erozenfeld erozenfeld merged commit 87f3910 into dotnet:master May 1, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants