aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-09 23:59:37 +0000
committerThomas Lively <tlively@google.com>2019-01-09 23:59:37 +0000
commit2eeade18142c3cd076c7c012d2b7357e91b771c6 (patch)
treeaaddff54403d69d66f3168c33e22b5ac02c68c2e /llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
parent224d831bed03dbf3934a606d7aaeefede16ab2fc (diff)
downloadllvm-2eeade18142c3cd076c7c012d2b7357e91b771c6.zip
llvm-2eeade18142c3cd076c7c012d2b7357e91b771c6.tar.gz
llvm-2eeade18142c3cd076c7c012d2b7357e91b771c6.tar.bz2
[WebAssembly] Add unimplemented-simd128 subtarget feature
Summary: This replaces the old ad-hoc -wasm-enable-unimplemented-simd flag. Also makes the new unimplemented-simd128 feature imply the simd128 feature. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits, alexcrichton Differential Revision: https://reviews.llvm.org/D56501 llvm-svn: 350778
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index a452a00..527908d 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
@@ -44,8 +44,6 @@ using namespace PatternMatch;
#define DEBUG_TYPE "wasm-fastisel"
-extern cl::opt<bool> EnableUnimplementedWasmSIMDInstrs;
-
namespace {
class WebAssemblyFastISel final : public FastISel {
@@ -145,7 +143,7 @@ private:
break;
case MVT::v2i64:
case MVT::v2f64:
- if (Subtarget->hasSIMD128() && EnableUnimplementedWasmSIMDInstrs)
+ if (Subtarget->hasUnimplementedSIMD128())
return VT;
break;
default: