From d61e0a1f48a46fe66950c6cc70d86d1f847bca9f Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 1 Jul 2019 11:33:45 +0000 Subject: [PATCH] [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 --- lib/Target/X86/X86ISelLowering.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.11.0