Skip to content

Commit

Permalink
Disable autovectorization on wasm (#86038)
Browse files Browse the repository at this point in the history
7c75cbf added the -msimd128 flag to cmakelists so that the interpreter could use wasm vector intrinsics. That option appears to imply enabling all sorts of auto-vectorization, which may be responsible for the regressions in dotnet/perf-autofiling-issues#17570
  • Loading branch information
kg authored May 10, 2023
1 parent 16559f9 commit 888bac3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mono/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,14 @@ elseif(CLR_CMAKE_HOST_OS STREQUAL "emscripten")
add_compile_options(-Wno-strict-prototypes)
add_compile_options(-Wno-unused-but-set-variable)
add_compile_options(-Wno-single-bit-bitfield-constant-conversion)
# Allow using WASM simd intrinsics in the interpreter
add_compile_options(-msimd128)
# Disable autovectorization (it is automatically turned on by msimd128)
add_compile_options(-disable-loop-vectorization)
add_compile_options(-disable-vectorization)
add_compile_options(-fno-vectorize)
add_compile_options(-fno-tree-vectorize)
add_compile_options(-fno-slp-vectorize)
set(DISABLE_EXECUTABLES 1)
# FIXME: Is there a cmake option for this ?
set(DISABLE_SHARED_LIBS 1)
Expand Down

0 comments on commit 888bac3

Please sign in to comment.