[WebAssembly] Emit a splat for v128 IMPLICIT_DEF
authorThomas Lively <tlively@google.com>
Thu, 20 Dec 2018 04:20:32 +0000 (04:20 +0000)
committerThomas Lively <tlively@google.com>
Thu, 20 Dec 2018 04:20:32 +0000 (04:20 +0000)
commitfeb18fe927d33e1d5a7bd873451ac9a1a76c7141
tree2420931912049190a3600369e0fa8b044b0e45e4
parent321bfb210a2d5a6da659e74715d83c7b2dc752eb
[WebAssembly] Emit a splat for v128 IMPLICIT_DEF

Summary:
This is a code size savings and is also important to get runnable code
while engines do not support v128.const.

Reviewers: aheejin, dschuff

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

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

llvm-svn: 349724
llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
llvm/test/CodeGen/WebAssembly/implicit-def.ll