summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-10 02:55:52 +0000
committerThomas Lively <tlively@google.com>2019-01-10 02:55:52 +0000
commiteb6f9abd41cbbef407f0b28f03c7ec40e7e8b23d (patch)
tree33f16dbbebbf502da1f0647a77eda4c11b261368 /llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
parent4d9ecaa8d789ce42c09cb10d422f4ca249163870 (diff)
downloadbcm5719-llvm-eb6f9abd41cbbef407f0b28f03c7ec40e7e8b23d.tar.gz
bcm5719-llvm-eb6f9abd41cbbef407f0b28f03c7ec40e7e8b23d.zip
[WebAssembly] Add simd128-unimplemented subtarget feature
This is a second attempt at r350778, which was reverted in r350789. The only change is that the unimplemented-simd128 feature has been renamed simd128-unimplemented, since naming it unimplemented-simd128 somehow made the simd128 feature flag enable the unimplemented-simd128 feature on Windows. llvm-svn: 350791
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 a452a005df7..f687c4dc042 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->hasSIMD128Unimplemented())
return VT;
break;
default:
OpenPOWER on IntegriCloud