From 9a5e06d9619c4d0adb4ea58f68559c3b947f31ea Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 27 Jun 2019 17:30:51 +0000 Subject: [PATCH] [X86] combineX86ShufflesRecursively - merge shuffles with more than 2 inputs We already had the infrastructure for this, but were waiting for the fix for a number of regressions which were handled by the recent shuffle(extract_subvector(),extract_subvector()) -> extract_subvector(shuffle()) shuffle combines git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364569 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index a8ef5638a0d..037dc039187 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -32519,10 +32519,6 @@ static SDValue combineX86ShufflesRecursively( if (!resolveTargetShuffleInputs(Op, OpInputs, OpMask, DAG)) return SDValue(); - // TODO - Add support for more than 2 inputs. - if (2 < OpInputs.size()) - return SDValue(); - // Add the inputs to the Ops list, avoiding duplicates. SmallVector Ops(SrcOps.begin(), SrcOps.end()); -- 2.11.0