Skip compilation of simple methods that just throw in crossgen2 (#49514)
authorDavid Wrighton <davidwr@microsoft.com>
Fri, 12 Mar 2021 22:27:39 +0000 (14:27 -0800)
committerGitHub <noreply@github.com>
Fri, 12 Mar 2021 22:27:39 +0000 (14:27 -0800)
commit0c3cc15f90f0e3b81ce3199be1ac217564043635
tree98fb3c802416e7f8cd58bc40f4da4082d126b6d6
parent997dc08f691ee0246990a21c73850a041b80b800
Skip compilation of simple methods that just throw in crossgen2 (#49514)

* Skip compilation of simple methods that just throw
- Significant savings when compiling System.Private.CoreLib. In particular, there are *many* intrinsic functions that we can now avoid compilation of
  - X64 build drops about 3,000 functions from compilation

* Update src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs

Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
src/coreclr/tools/Common/TypeSystem/IL/ILOpcodeHelper.cs
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs
src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs