[X86][AVX] combineX86ShuffleChain - pull out CombineShuffleWithExtract lambda. NFCI.
commit1980b3a5288def0a92a58baaa36129bc7741d398
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 2 Jul 2019 13:30:04 +0000 (2 13:30 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 2 Jul 2019 13:30:04 +0000 (2 13:30 +0000)
tree85913673726463711b91b6e8105b74a26997b1ca
parent72994c96268c075f14f8b277582ca8ea0e6c7b14
[X86][AVX] combineX86ShuffleChain - pull out CombineShuffleWithExtract lambda. NFCI.

Pull out CombineShuffleWithExtract lambda to new combineX86ShuffleChainWithExtract wrapper and refactored it to handle more than 2 shuffle inputs - this will allow combineX86ShufflesRecursively to call this in a future patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp