summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-10 01:37:44 +0000
committerThomas Lively <tlively@google.com>2019-01-10 01:37:44 +0000
commitfdca5fab606b6f9a6a37b0d406b75c2d8c2d743f (patch)
treeac8bf9ee12e383c3aa8cc3c164315039d0f2e052 /llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
parent53dddee1711efebd2cba328f6bd5ddfbdf9dc0dc (diff)
downloadbcm5719-llvm-fdca5fab606b6f9a6a37b0d406b75c2d8c2d743f.tar.gz
bcm5719-llvm-fdca5fab606b6f9a6a37b0d406b75c2d8c2d743f.zip
Revert "[WebAssembly] Add unimplemented-simd128 subtarget feature"
This reverts L350778. llvm-svn: 350789
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index 527908d039c..a452a005df7 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
@@ -44,6 +44,8 @@ using namespace PatternMatch;
#define DEBUG_TYPE "wasm-fastisel"
+extern cl::opt<bool> EnableUnimplementedWasmSIMDInstrs;
+
namespace {
class WebAssemblyFastISel final : public FastISel {
@@ -143,7 +145,7 @@ private:
break;
case MVT::v2i64:
case MVT::v2f64:
- if (Subtarget->hasUnimplementedSIMD128())
+ if (Subtarget->hasSIMD128() && EnableUnimplementedWasmSIMDInstrs)
return VT;
break;
default:
OpenPOWER on IntegriCloud