From: Simon Pilgrim Date: Mon, 1 Jul 2019 11:33:45 +0000 (+0000) Subject: [X86] CombineShuffleWithExtract - updated description comments. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d61e0a1f48a46fe66950c6cc70d86d1f847bca9f;p=llvm [X86] CombineShuffleWithExtract - updated description comments. NFCI. CombineShuffleWithExtract no longer requires that both shuffle ops are extract_subvectors, from the same type or from the same size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364745 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 9286ef4f066..dfccda7ccd7 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -32180,8 +32180,8 @@ static SDValue combineX86ShuffleChain(ArrayRef Inputs, SDValue Root, return DAG.getBitcast(RootVT, Res); } - // If that failed and both inputs are extracted from the same source type - // then try to combine as an unary shuffle with the larger type. + // If that failed and either input is extracted then try to combine as a + // shuffle with the larger type. SDValue NewRoot; SmallVector NewMask; SmallVector NewInputs; @@ -32360,8 +32360,8 @@ static SDValue combineX86ShuffleChain(ArrayRef Inputs, SDValue Root, return DAG.getBitcast(RootVT, Res); } - // If that failed and both inputs are extracted from the same source type - // then try to combine as an unary shuffle with the larger type. + // If that failed and either input is extracted then try to combine as a + // shuffle with the larger type. SDValue NewRoot; SmallVector NewMask; SmallVector NewInputs;