Skip to content

Fix tailCall check for for calli.#39621

Merged
sandreenko merged 1 commit into
dotnet:masterfrom
sandreenko:fixTailCallCheck
Jul 21, 2020
Merged

Fix tailCall check for for calli.#39621
sandreenko merged 1 commit into
dotnet:masterfrom
sandreenko:fixTailCallCheck

Conversation

@sandreenko

@sandreenko sandreenko commented Jul 20, 2020

Copy link
Copy Markdown
Contributor

As we can see from

else // (opcode != CEE_CALLI)

sig = &(callInfo->sig);
callRetTyp = JITtype2varType(sig->retType);

in impImportCall the correct signature is saved in sig. callInfo->sig is correct for !CEE_CALLI, calliSig is used for CEE_CALLI.

Fixes #39556 (It fixes new 2 failures out of 34, but the other are expected InvalidProgramException).

@sandreenko sandreenko added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 20, 2020
@sandreenko

Copy link
Copy Markdown
Contributor Author

PTAL @dotnet/jit-contrib

@erozenfeld

Copy link
Copy Markdown
Contributor

Looks good but I think you have it backwards in the title and the description: this fixes calli case, not !calli.

@sandreenko sandreenko changed the title Fix tailCall check for for !calli. Fix tailCall check for for calli. Jul 20, 2020
@sandreenko

Copy link
Copy Markdown
Contributor Author

Looks good but I think you have it backwards in the title and the description: this fixes calli case, not !calli.

You are right, thanks.

@erozenfeld erozenfeld left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sandreenko sandreenko merged commit c399806 into dotnet:master Jul 21, 2020
@sandreenko sandreenko deleted the fixTailCallCheck branch July 21, 2020 06:12
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 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.

Pmi run on some test dll-s hits some jit asserts.

3 participants