Revert "[WebAssembly] Add simd128-unimplemented subtarget feature"
This reverts rL350791.
llvm-svn: 350795
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index f687c4d..a452a00 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
@@ -44,6 +44,8 @@
#define DEBUG_TYPE "wasm-fastisel"
+extern cl::opt<bool> EnableUnimplementedWasmSIMDInstrs;
+
namespace {
class WebAssemblyFastISel final : public FastISel {
@@ -143,7 +145,7 @@
break;
case MVT::v2i64:
case MVT::v2f64:
- if (Subtarget->hasSIMD128Unimplemented())
+ if (Subtarget->hasSIMD128() && EnableUnimplementedWasmSIMDInstrs)
return VT;
break;
default: