HomePhabricator

[WebAssembly] Prefer v128.const for constant splats

Authored by tlively on Jul 10 2020, 6:27 PM.

Description

[WebAssembly] Prefer v128.const for constant splats

In BUILD_VECTOR lowering, we used to generally prefer using splats
over v128.const instructions because v128.const has a very large
encoding. However, in d5b7a4e2e8 we switched to preferring consts
because they are expected to be more efficient in engines. This patch
updates the ISel patterns to match this current preference.

Differential Revision: https://reviews.llvm.org/D83581

Details

Committed
tlivelyJul 10 2020, 6:27 PM
Differential Revision
D83581: [WebAssembly] Prefer v128.const for constant splats
Parents
rG7b67bc16ef1b: [openmp] Fix warning in generated OMP.cpp
Branches
Unknown
Tags
Unknown