Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Bogatov <egorbo@gmail.com>2021-07-08 15:20:30 +0300
committerGitHub <noreply@github.com>2021-07-08 15:20:30 +0300
commit46e5fe1c9a4584b006601d46063b353338219af0 (patch)
tree80c405e893d6aee5a4ed7e44765dccf83b605d9c /src/coreclr/jit/flowgraph.cpp
parent1ca17cd7f7b16b5dfe7703e8e676d645da86af4d (diff)
JIT: Drop redundant static initializations from (Equality)Comparer<T>.Default (#50446)
Co-authored-by: Andy Ayers <andya@microsoft.com>
Diffstat (limited to 'src/coreclr/jit/flowgraph.cpp')
-rw-r--r--src/coreclr/jit/flowgraph.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/coreclr/jit/flowgraph.cpp b/src/coreclr/jit/flowgraph.cpp
index 04faed33f50..1f3e71ade8a 100644
--- a/src/coreclr/jit/flowgraph.cpp
+++ b/src/coreclr/jit/flowgraph.cpp
@@ -910,21 +910,6 @@ GenTreeCall* Compiler::fgGetStaticsCCtorHelper(CORINFO_CLASS_HANDLE cls, CorInfo
GenTreeCall* result = gtNewHelperCallNode(helper, type, argList);
result->gtFlags |= callFlags;
-
- // If we're importing the special EqualityComparer<T>.Default or Comparer<T>.Default
- // intrinsics, flag the helper call. Later during inlining, we can
- // remove the helper call if the associated field lookup is unused.
- if ((info.compFlags & CORINFO_FLG_JIT_INTRINSIC) != 0)
- {
- NamedIntrinsic ni = lookupNamedIntrinsic(info.compMethodHnd);
- if ((ni == NI_System_Collections_Generic_EqualityComparer_get_Default) ||
- (ni == NI_System_Collections_Generic_Comparer_get_Default))
- {
- JITDUMP("\nmarking helper call [%06u] as special dce...\n", result->gtTreeID);
- result->gtCallMoreFlags |= GTF_CALL_M_HELPER_SPECIAL_DCE;
- }
- }
-
return result;
}