[WebAssembly] Lower SIMD shifts since they are fixed in V8
authorThomas Lively <tlively@google.com>
Fri, 1 Mar 2019 01:38:54 +0000 (01:38 +0000)
committerThomas Lively <tlively@google.com>
Fri, 1 Mar 2019 01:38:54 +0000 (01:38 +0000)
Reviewers: sbc100

Subscribers: dschuff, jgravelle-google, hiraditya, aheejin, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58800

llvm-svn: 355163

llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

index 50bd5a9..4255e0e 100644 (file)
@@ -1291,11 +1291,6 @@ SDValue WebAssemblyTargetLowering::LowerShift(SDValue Op,
   // Only manually lower vector shifts
   assert(Op.getSimpleValueType().isVector());
 
-  // Expand all vector shifts until V8 fixes its implementation
-  // TODO: remove this once V8 is fixed
-  if (!Subtarget->hasUnimplementedSIMD128())
-    return unrollVectorShift(Op, DAG);
-
   // Unroll non-splat vector shifts
   BuildVectorSDNode *ShiftVec;
   SDValue SplatVal;