]> granicus.if.org Git - llvm/commit
[WebAssembly] Fix a regression selecting negative build_vector lanes
authorThomas Lively <tlively@google.com>
Thu, 31 Jan 2019 23:22:39 +0000 (23:22 +0000)
committerThomas Lively <tlively@google.com>
Thu, 31 Jan 2019 23:22:39 +0000 (23:22 +0000)
commit68d1052dc355480e7c8c2bf03ad1309a4a97a7f9
tree148dfedce6e833512593e26b65a8b0183b486dc7
parent1bf70014cf4f5f65e1aa308b30f7b7addfc78fc8
[WebAssembly] Fix a regression selecting negative build_vector lanes

Summary:
The custom lowering introduced in rL352592 creates build_vector nodes
with negative i32 operands, but these operands did not meet the value
range constraints necessary to match build_vector nodes. This CL fixes
the issue by removing the unnecessary constraints.

Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352813 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
test/CodeGen/WebAssembly/simd-build-vector.ll