Skip to content

Conversation

@EgorBo
Copy link
Member

@EgorBo EgorBo commented Jul 27, 2021

This PR reverts #50446 and fixes #56019

The problem is - that PR disabled inlining for EqualityComparer.get_Default() method so we could easily track it and get rid of it in case if it's not used. Unfortunately, I forgot that in cases where we can't get rid of it - we better have it inlined (just a 'call' overhead).

I tried to "inline" it by hands in liveness.cpp (where we decide whether it's used or not) but it needs more work: EgorBo@53bce00 I'll revise it after a short vacation.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 27, 2021
@EgorBo
Copy link
Member Author

EgorBo commented Jul 28, 2021

@dotnet/jit-contrib PTAL, it reverts a perf regression.

@EgorBo EgorBo merged commit a036594 into dotnet:main Jul 29, 2021
@pentp
Copy link
Contributor

pentp commented Jul 30, 2021

Should re-open #48358 also?

@DrewScoggins
Copy link
Member

DrewScoggins commented Aug 3, 2021

After the revert we are seeing some new regressions and some improvements. We should consider this when we try again at this fix

Windows:

Ubuntu:

@ghost ghost locked as resolved and limited conversation to collaborators Sep 2, 2021
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.

[Perf] Regression in Copy and EqualityComparers

4 participants