[llvm] Use -place-safepoints in JIT mode too (mono/mono#17116)
authorEgor Bogatov <egorbo@gmail.com>
Fri, 25 Oct 2019 14:10:57 +0000 (17:10 +0300)
committerBernhard Urban-Forster <lewurm@gmail.com>
Fri, 25 Oct 2019 14:10:57 +0000 (16:10 +0200)
commite19f845f89d0c569276dd71901c86634f82f0fd6
tree65f8dbf70b092073b940eee17492e32532485807
parentee3b5b27db493abc6440337a5bb360e6c235882b
[llvm] Use -place-safepoints in JIT mode too (mono/mono#17116)

* always use -place-safepoints pass in JIT mode

* ignore loaded llvm

* remove gc.safepoint_poll after optimizations

* fix typo

* cleanup

* cleanup

* cleanup

* cleanup

* Do not emit safepoints on entry thus simple functions (without calls and loops) won't have them at all

* Undo  -spp-no-entry=true

* fix failing tests

* do not emit sp in Allocators

Commit migrated from https://github.com/mono/mono/commit/dc4a7f5ed7094a586cee28c4f9987c40b4f2cea5
src/mono/mono/mini/llvm-jit.cpp
src/mono/mono/mini/mini-llvm-cpp.cpp
src/mono/mono/mini/mini-llvm-cpp.h
src/mono/mono/mini/mini-llvm.c
src/mono/mono/mini/mini.c