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

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Brezae <brezaevlad@gmail.com>2022-09-09 12:52:57 +0300
committerVlad Brezae <brezaevlad@gmail.com>2022-09-09 12:52:57 +0300
commitc4503cc4d769cf905644f80c7c56dc6daf9f2b3b (patch)
tree38f7df56daeb8210438467aea45eb47860eddecc
parentb34af09285415a2b3ceb122592eb9d7b28708df4 (diff)
[llvm] Disable simd instrinsics also with llvm jitbackport/pr-74797-to-release/7.0
Mixing llvm jit with intrinsics enabled with aot code that has intrinsics disabled also is buggy. Seems like it can lead to simd opcodes being applied to non aligned addresses. At this point we would only have simd instrinsics enabled with fullaotllvm.
-rw-r--r--src/mono/mono/mini/mini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mono/mono/mini/mini.c b/src/mono/mono/mini/mini.c
index 46586039a1a..08ed72996a3 100644
--- a/src/mono/mono/mini/mini.c
+++ b/src/mono/mono/mini/mini.c
@@ -3038,7 +3038,7 @@ is_simd_supported (MonoCompile *cfg)
return FALSE;
// FIXME We disable simd intrinsics when mixing between llvmaot and jit since the llvm backend could
// see that certain simd operations are supported while with jit we fail to emit correct code.
- if (cfg->compile_aot && cfg->compile_llvm && !cfg->full_aot)
+ if (cfg->compile_llvm && !cfg->full_aot)
return FALSE;
#endif
return TRUE;