llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.98k stars 11.95k forks source link

[WebAssembly] SIMD intrinsics should be constant folded #55933

Open tlively opened 2 years ago

tlively commented 2 years ago

The WebAssembly target supports a large number of SIMD intrinsics, many of which are generated from clang builtins. None of these intrinsics can be constant folded, however, which may significantly hinder optimizations when the builtins are used, including when they are used indirectly via the wasm_simd128.h intrinsic header.

llvmbot commented 2 years ago

@llvm/issue-subscribers-backend-webassembly