What really counts for performance on modern CPUs are memory access patterns, if those are bad, LLVM's optimizer passes won't help much - especially since WASM itself is fairly highlevel too and requires further optimization when translated to machine code anyway.
A more interesting question is instead: does AssemblyScript allow the same control over memory layout as C, C++ or Rust?
A more interesting question is instead: does AssemblyScript allow the same control over memory layout as C, C++ or Rust?