Files
imhameed fe0f824db5 [llvm] Use explicit null checks with LLVM. (#16954)
* [llvm] Use explicit null checks with LLVM.

When the LLVM backend is used for a method, explicit null checks will
unconditionally be used at the mini IR level. We had previously used
implicit null checks at the mini IR level combined with llvm-volatile
loads and stores to avoid mis-optimization of the generated code.

During AOT compilation, LLVM's `ImplicitNullChecks` pass is enabled.
This conservatively elides these explicit null checks. This pass only
modifies branches tagged with `make.implicit` metadata.

Null check branches are now tagged with `make.implicit` metadata, with
three exceptions:

1. For platforms with backends that do not support zero page fault
handling, null check branches are not tagged with `make.implicit`.

2. This commit also adds a `MONO_DEBUG` option:
`llvm-disable-implicit-null-checks`. When it is enabled, null check
branches are not tagged with `make.implicit`.

3. This commit alters the behavior of the `explicit-null-checks`
`MONO_DEBUG` option. Enabling `explicit-null-checks` also implies
`llvm-disable-implicit-null-checks`, because this option is documented
(e.g. in https://www.mono-project.com/docs/debug+profile/debug/) to
completely disable signal/seh-based null checks.

* Add llvm-disable-implicit-null-checks to the MONO_DEBUG help string.

* Add llvm-disable-implicit-null-checks to mono.1.

* Don't tag null checks in EH regions with `make.implicit`.

This relocates the logic formerly used to guard individual LLVM-level
loads and stores with explicit null checks inside EH regions.

* Use atomic/volatile loads and stores for the terimation flag in thread-suspend-suspended.

LLVM was hoisting the load of and branch against `finished` out of
thread t1's loop, resulting in an infinite spin.

* Use ImplicitNullChecks with LLVM JIT.

* Suppress emission of the .llvm_faultmaps section.

Bump external/llvm to release_60
(7a8dc89adbe7e123220e070a527e096ee91e66d5).

* [ci] use LLVM built from repository
2019-11-13 01:35:44 +01:00
..
2009-02-28 14:36:50 +00:00
2015-12-31 22:56:00 -05:00
2016-10-27 01:00:23 +05:00
2016-10-27 12:19:30 +02:00
2016-09-01 09:22:16 -04:00
2016-10-27 12:19:30 +02:00
2005-09-23 22:25:12 +00:00
2003-05-02 22:38:50 +00:00
2016-10-27 12:19:30 +02:00
2016-10-27 12:19:30 +02:00
2005-09-23 22:25:12 +00:00
2007-05-05 16:58:42 +00:00
2011-03-27 16:59:26 -04:00
2003-07-30 14:01:40 +00:00
2017-09-08 07:22:45 +02:00
2017-02-21 12:03:07 +01:00
2018-05-18 19:37:04 +02:00
2006-01-26 21:02:33 +00:00
2017-02-21 12:03:07 +01:00
2009-04-23 20:15:47 +00:00
2005-09-23 22:25:12 +00:00
2015-05-14 18:58:50 +01:00
2005-11-26 19:55:22 +00:00