diff options
| author | Thomas Lively <tlively@google.com> | 2018-12-21 06:58:15 +0000 |
|---|---|---|
| committer | Thomas Lively <tlively@google.com> | 2018-12-21 06:58:15 +0000 |
| commit | b6dac89c8753e654d3dafeec398ddcd7e9b02c4b (patch) | |
| tree | be0ce86aee04465b2d35eeecae9c435b9a528919 /llvm/lib | |
| parent | aae39bf92841bd22f574d5da318303f12c2058c8 (diff) | |
| download | bcm5719-llvm-b6dac89c8753e654d3dafeec398ddcd7e9b02c4b.tar.gz bcm5719-llvm-b6dac89c8753e654d3dafeec398ddcd7e9b02c4b.zip | |
[WebAssembly] Fix invalid machine instrs in -O0, verify in tests
Reviewers: aheejin, dschuff
Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D55956
llvm-svn: 349889
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp index c491678aaaa..a452a005df7 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp @@ -139,12 +139,15 @@ private: case MVT::v16i8: case MVT::v8i16: case MVT::v4i32: - case MVT::v2i64: case MVT::v4f32: - case MVT::v2f64: if (Subtarget->hasSIMD128()) return VT; break; + case MVT::v2i64: + case MVT::v2f64: + if (Subtarget->hasSIMD128() && EnableUnimplementedWasmSIMDInstrs) + return VT; + break; default: break; } |

