[WebAssembly] Fix incorrect assumption of simple value types
authorThomas Lively <tlively@google.com>
Sun, 6 Sep 2020 22:42:21 +0000 (15:42 -0700)
committerThomas Lively <tlively@google.com>
Sun, 6 Sep 2020 22:42:21 +0000 (15:42 -0700)
commitcaee15a0ed52471bd329d01dc253ec9be3936c6d
tree0eb7da7617ee9990aebcf69e752024c47f0dce0b
parentefa57f9a7adb11a14b4e0d930f49070c769fa6ac
[WebAssembly] Fix incorrect assumption of simple value types

Fixes PR47375, in which an assertion was triggering because
WebAssemblyTargetLowering::isVectorLoadExtDesirable was improperly
assuming the use of simple value types.

Differential Revision: https://reviews.llvm.org/D87110
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/test/CodeGen/WebAssembly/pr47375.ll [new file with mode: 0644]