[PATCH] D97890: [GlobalISel] Fold away G_BUILD_VECTOR with all elements extracted.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 3 15:00:05 PST 2021


aemerson created this revision.
aemerson added reviewers: arsenm, paquette.
aemerson added a project: LLVM.
Herald added subscribers: hiraditya, rovka.
aemerson requested review of this revision.
Herald added a subscriber: wdng.

If every element is extracted from a G_BUILD_VECTOR, pass through the source registers. This is different to the extract(build_vector) combine because this one tolerates multiple users as long as they're exhaustive.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97890

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/combine-build-vector.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97890.327937.patch
Type: text/x-patch
Size: 10663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210303/aa173fab/attachment.bin>


More information about the llvm-commits mailing list