Do not generate relocs to empty type dictionaries (#83367)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Tue, 14 Mar 2023 05:57:45 +0000 (14:57 +0900)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2023 05:57:45 +0000 (14:57 +0900)
commitc9f5ca2f34ee05403238797276279b28a417934c
tree33791a442d793b71a8041dbc60b454ea5a68486a
parent55a09408141e4c97b866b7f36910d033d2f1f05d
Do not generate relocs to empty type dictionaries (#83367)

If the generic dictionary is empty, there's no legitimate reason to access it. Saves 20 kB on BasicMinimalApi.

Also deleting a multimodule extensibility point that was getting in the way. We didn't use it and I don't see a future need for it either.
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/EETypeNode.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ExternSymbolsImportedNodeProvider.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/GenericDictionaryNode.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ImportedNodeProvider.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/NodeFactory.cs