Fix perf regression in master. (dotnet/coreclr#20762)
authorSergey Andreenko <seandree@microsoft.com>
Mon, 5 Nov 2018 17:03:43 +0000 (09:03 -0800)
committerGitHub <noreply@github.com>
Mon, 5 Nov 2018 17:03:43 +0000 (09:03 -0800)
commitc972f305467712e93b379022aee444b43c42d7ac
tree2495b1614fde10cd40cc3881274376fe66537f3d
parent452f26a9a91f92ddb11447d6660bf4c6c9bdb118
Fix perf regression in  (dotnet/coreclr#20762)

* Fix comments.

We count implict byref argument occurrences for all lclVars not only for promoted.

* Fix the regression.

Return the old behaiour where both parent and promoted lclVar have updated ref counters.

* rename `UpdateImplicitByRefCounter` to `UpdateEarlyRefCountForImplicitByRef`

* Fix comment.

Commit migrated from https://github.com/dotnet/coreclr/commit/0ce06bbbc113ed67970d3af33a5f7292e5180ff5
src/coreclr/src/jit/morph.cpp