commented
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 4 Dec 2021 22:10:49 +0000 (16:10 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 4 Dec 2021 22:10:49 +0000 (16:10 -0600)
src/wasm_emit.c

index b7aea1a65b6aaf7858a41371e47d9cc9096bd34d..ed6b02999abc0921b66645e865479b8296e752ae 100644 (file)
@@ -2287,6 +2287,9 @@ EMIT_FUNC(array_store, Type* type, u32 offset) {
     WI(WI_I32_NE);
     emit_enter_structured_block(mod, &code, SBT_Basic_If);
 
+    //
+    // CLEANUP: Most of these cases could be much shorter if they used existing intrinsics.
+    //
     if (elem_count <= 2) {
         // Inline copying for a small number of elements. It still may be faster to do this in a tight loop.