Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorimhameed <imhameed@microsoft.com>2020-02-02 09:18:31 +0300
committerGitHub <noreply@github.com>2020-02-02 09:18:31 +0300
commit4bed68d0731ebe13393e7404d5975079c3fdcd87 (patch)
treeaa84c07180f6457b0a2c7020d400e4b427458f33
parent3a93ebd6fee0a42c4dece98f0baca9b7008cbfc6 (diff)
[llvm] Enable jump threading with LLVM JIT. (#18655)
See https://github.com/mono/mono/issues/16243. This will allow elision of redundant bounds checks. This pass is already used during AOT (as part of opt -O2).
-rw-r--r--mono/mini/llvm-jit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/mini/llvm-jit.cpp b/mono/mini/llvm-jit.cpp
index a0c870afe8d..9f4d4d2cb8c 100644
--- a/mono/mini/llvm-jit.cpp
+++ b/mono/mini/llvm-jit.cpp
@@ -300,7 +300,7 @@ public:
// FIXME: find optimal mono specific order of passes
// see https://llvm.org/docs/Frontend/PerformanceTips.html#pass-ordering
// the following order is based on a stripped version of "OPT -O2"
- const char *default_opts = " -simplifycfg -sroa -lower-expect -instcombine -loop-rotate -licm -simplifycfg -lcssa -loop-idiom -indvars -loop-deletion -gvn -memcpyopt -sccp -bdce -instcombine -dse -simplifycfg -enable-implicit-null-checks";
+ const char *default_opts = " -simplifycfg -sroa -lower-expect -instcombine -jump-threading -loop-rotate -licm -simplifycfg -lcssa -loop-idiom -indvars -loop-deletion -gvn -memcpyopt -sccp -bdce -instcombine -dse -simplifycfg -enable-implicit-null-checks";
const char *opts = g_getenv ("MONO_LLVM_OPT");
if (opts == NULL)
opts = default_opts;