]> granicus.if.org Git - llvm/commitdiff
[X86][SSE] resolveTargetShuffleInputs - call getTargetShuffleInputs instead of using...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 6 Oct 2019 15:42:25 +0000 (15:42 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 6 Oct 2019 15:42:25 +0000 (15:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373855 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index ca770faad133d8786fb8c3b5bf9a61e82fac2052..abd62d1836d5daa056fd92eb192e64e9a07e8aa5 100644 (file)
@@ -7260,7 +7260,7 @@ static bool getTargetShuffleInputs(SDValue Op, const APInt &DemandedElts,
   return true;
 }
 
-/// Calls setTargetShuffleZeroElements to resolve a target shuffle mask's inputs
+/// Calls getTargetShuffleInputs to resolve a target shuffle mask's inputs
 /// and set the SM_SentinelUndef and SM_SentinelZero values. Then check the
 /// remaining input indices in case we now have a unary shuffle and adjust the
 /// inputs accordingly.
@@ -7270,10 +7270,9 @@ static bool resolveTargetShuffleInputs(SDValue Op, const APInt &DemandedElts,
                                        SmallVectorImpl<int> &Mask,
                                        SelectionDAG &DAG, unsigned Depth,
                                        bool ResolveZero) {
-  if (!setTargetShuffleZeroElements(Op, Mask, Inputs, ResolveZero))
-    if (!getFauxShuffleMask(Op, DemandedElts, Mask, Inputs, DAG, Depth,
-                            ResolveZero))
-      return false;
+  if (!getTargetShuffleInputs(Op, DemandedElts, Inputs, Mask, DAG, Depth,
+                              ResolveZero))
+    return false;
 
   resolveTargetShuffleInputsAndMask(Inputs, Mask);
   return true;