[mini] do not emit safepoints for methods without calls and loops (#11554)
commitc200ccbb6265d6564cf72217b58991874f5148e5
authorBernhard Urban <bernhard.urban@xamarin.com>
Tue, 6 Nov 2018 12:25:38 +0000 (6 13:25 +0100)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 6 Nov 2018 12:25:38 +0000 (6 07:25 -0500)
treec8632bcfec363f8feaf0de67f12a360c1316f7ed
parentc8d59d1d1ddc140aec489e7d0e8bd338324fec04
[mini] do not emit safepoints for methods without calls and loops (#11554)

[mini] do not emit safepoints for methods without calls and loops

with this optimization, running Roslyn with mono on
`mono/tests/pinvoke11.cs` compiles:

* 2019 methods without safepoints, and
* 9443 methods with safepoints.
mono/mini/method-to-ir.c
mono/mini/mini.c
mono/mini/mini.h