From: Simon Pilgrim Date: Sun, 10 Sep 2017 18:18:45 +0000 (+0000) Subject: [X86][SSE] Tidyup + clang-format combineX86ShuffleChain call. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae1a1a7f1b4e1ead3b11f70fcbc6153efbf3f8a6;p=llvm [X86][SSE] Tidyup + clang-format combineX86ShuffleChain call. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312887 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 75ac6d9d8d4..01bdce9fab9 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -28403,9 +28403,8 @@ static bool combineX86ShufflesRecursively(ArrayRef 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; }