[WebAssembly] Retain shuffle types during custom lowering
authorThomas Lively <tlively@google.com>
Wed, 24 Oct 2018 23:27:40 +0000 (23:27 +0000)
committerThomas Lively <tlively@google.com>
Wed, 24 Oct 2018 23:27:40 +0000 (23:27 +0000)
commited9513472c111f6bbf1e34d33a4b5b45aa3c8d76
treec5990b5593f38d32790cdbfe2b96fda9a93e640c
parent22602a49800142625a094d31db9e511a6c26f494
[WebAssembly] Retain shuffle types during custom lowering

Summary:
Changing the node type in lowering was violating assumptions made in
the DAG combiner, so don't change the node type any more. This fixes
one of the issues reported in bug 39275.

Reviewers: aheejin, dschuff

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

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

llvm-svn: 345221
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
llvm/test/CodeGen/WebAssembly/simd-nested-shuffles.ll [new file with mode: 0644]