Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[wasm] Always respect WasmEnableSIMD when trimming #115313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lewing
Copy link
Member

@lewing lewing commented May 5, 2025

Always respect WasmEnableSIMD and keep simd intrinsics live when configuration=Debug and WasmEnableSIMD is true. @thaystg will this cause problems with the debugger? Without this the code follows completely different paths with and without debug enabled and we cannot trim the simd path properly.

extracted from #115062

@lewing lewing requested a review from thaystg May 5, 2025 20:23
@@ -325,7 +325,7 @@ mono_wasm_load_runtime_common (int debug_level, MonoLogCallback log_callback, co
*/
if (debug_level) {
// Disable optimizations which interfere with debugging
interp_opts = "-all";
interp_opts = "-all,simd";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This keeps simd intrinsics live when debugging otherwise we'd trim PackedSimd.IsSupported to true but it would fail at runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant