[WebAssembly] Prioritize splats over v128.consts
authorThomas Lively <tlively@google.com>
Thu, 23 Aug 2018 19:23:13 +0000 (19:23 +0000)
committerThomas Lively <tlively@google.com>
Thu, 23 Aug 2018 19:23:13 +0000 (19:23 +0000)
commitda26b84bd0cf996badc6c1c876f5a363158ca8d4
treed34f528de5e06915def812a9061a4eccbf2c78d1
parent1542b0aef5230d0748e8791c16db66debf95d46d
[WebAssembly] Prioritize splats over v128.consts

Summary:
Splats are fewer bytes than v128.consts, so use them when either could
apply.

Reviewers: aheejin, dschuff

Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits

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

llvm-svn: 340569
llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
llvm/test/CodeGen/WebAssembly/simd.ll