[PATCH] D72361: [DAGCombiner] reduce extract subvector of concat

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 14:06:29 PST 2020


spatel created this revision.
spatel added reviewers: craig.topper, RKSimon, lebedev.ri.
Herald added subscribers: hiraditya, mcrosier.
Herald added a project: LLVM.

If we are extracting a chunk of a vector that's smaller than an operand of the concatenated vector operand, we can extract directly from one of those original operands.
This is another suggestion from PR42024:
https://bugs.llvm.org/show_bug.cgi?id=42024#c2

But I'm not sure yet if it will make any difference on those patterns. It seems to help a few existing AVX512 tests though.

Most of the code diff here is refactoring, so I can make that a preliminary commit if preferred.


https://reviews.llvm.org/D72361

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/avg.ll
  llvm/test/CodeGen/X86/pr34657.ll
  llvm/test/CodeGen/X86/x86-interleaved-access.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72361.236686.patch
Type: text/x-patch
Size: 10555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200107/2b1efca2/attachment.bin>


More information about the llvm-commits mailing list