]> granicus.if.org Git - llvm/commitdiff
[X86][SSE] Tidyup + clang-format combineX86ShuffleChain call. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 10 Sep 2017 18:18:45 +0000 (18:18 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 10 Sep 2017 18:18:45 +0000 (18:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312887 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 75ac6d9d8d465855f31a7d37ee211e729a595b38..01bdce9fab9e8b94ee893ed88d6832bcedee03e9 100644 (file)
@@ -28403,9 +28403,8 @@ static bool combineX86ShufflesRecursively(ArrayRef<SDValue> SrcOps,
   }
 
   // Finally, try to combine into a single shuffle instruction.
-  SDValue Res = combineX86ShuffleChain(Ops, Root, Mask, Depth, HasVariableMask, DAG,
-                                       DCI, Subtarget);
-  if (Res) {
+  if (SDValue Res = combineX86ShuffleChain(
+          Ops, Root, Mask, Depth, HasVariableMask, DAG, DCI, Subtarget)) {
     DCI.CombineTo(Root.getNode(), Res, /*AddTo*/ true);
     return true;
   }