[WebAssembly] Handle errors better in fast-isel.
authorDan Gohman <dan433584@gmail.com>
Tue, 28 Nov 2017 05:36:42 +0000 (05:36 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 28 Nov 2017 05:36:42 +0000 (05:36 +0000)
commit3ff73cfbcd7eb99d2186b883089b412245b717e4
tree3253df073bdb67d6482cd23b6d5015f23ab9fcac
parent640a3c1e2a07da34cbbec6ff12bb570dd7a9613b
[WebAssembly] Handle errors better in fast-isel.

Fast-isel routines need to bail out in the case that fast-isel
fails on the operands.

This fixes https://bugs.llvm.org/show_bug.cgi?id=35064

llvm-svn: 319144
llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
llvm/test/CodeGen/WebAssembly/fast-isel-noreg.ll